Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

InvalidArgumentException in root namespace #4

Merged
merged 1 commit into from Mar 19, 2012
Jump to file or symbol
Failed to load files and symbols.
+3 −3
Split
@@ -226,7 +226,7 @@ public function delete(SoftDeleteable $document)
{
$oid = spl_object_hash($document);
if (isset($this->documentDeletes[$oid])) {
- throw new InvalidArgumentException('Document is already scheduled for delete.');
+ throw new \InvalidArgumentException('Document is already scheduled for delete.');
}
// If scheduled for restore then remove it
@@ -249,7 +249,7 @@ public function restore(SoftDeleteable $document)
{
$oid = spl_object_hash($document);
if (isset($this->documentRestores[$oid])) {
- throw new InvalidArgumentException('Document is already scheduled for restore.');
+ throw new \InvalidArgumentException('Document is already scheduled for restore.');
}
// If scheduled for delete then remove it
@@ -371,4 +371,4 @@ private function executeRestores()
}
}
}
-}
+}