diff --git a/src/ObjectResolver.php b/src/ObjectResolver.php index 82016e7..8973b58 100644 --- a/src/ObjectResolver.php +++ b/src/ObjectResolver.php @@ -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 { throw new \InvalidArgumentException("Class `$className` was not found within {$this->objectClass} uses statement (or it's children / traits)");