From 14d6a0d10a45c03befe31ed7efa3a8d8aea08646 Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Tue, 19 Oct 2021 12:44:44 +0000 Subject: [PATCH] - Fixed the exception thrown --- src/ObjectResolver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)");