- Fixed the exception thrown
This commit is contained in:
parent
61fa5d220e
commit
14d6a0d10a
|
@ -56,7 +56,7 @@ class ObjectResolver {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new \TypeError("Annotation `$className` could not be found within your object `{$this->objectClass}`");
|
throw new \Exception("Annotation `$className` could not be found within your object `{$this->objectClass}`");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
throw new \InvalidArgumentException("Class `$className` was not found within {$this->objectClass} uses statement (or it's children / traits)");
|
throw new \InvalidArgumentException("Class `$className` was not found within {$this->objectClass} uses statement (or it's children / traits)");
|
||||||
|
|
Loading…
Reference in New Issue