diff --git a/src/Common/EntityResolver.php b/src/Common/EntityResolver.php index ae45936..4b2a7a5 100644 --- a/src/Common/EntityResolver.php +++ b/src/Common/EntityResolver.php @@ -116,7 +116,6 @@ class EntityResolver { } } } - } throw new \TypeError("Annotation `$className` could not be found within your object `{$this->entityClass}`"); diff --git a/src/Common/ObjectReflection.php b/src/Common/ObjectReflection.php index 77de42d..7108c13 100644 --- a/src/Common/ObjectReflection.php +++ b/src/Common/ObjectReflection.php @@ -124,7 +124,7 @@ class ObjectReflection { ReflectionMethod::IS_STATIC ) : array { - $methods = []; + $list = $methods = []; if ( $full ) { if ( $parentClass = $this->classReflection->getParentClass() ) { @@ -134,8 +134,6 @@ class ObjectReflection { $methods = array_merge($methods, $this->classReflection->getMethods($filter)); - $list = []; - foreach($methods as $method) { $parameters = [];