You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you try to load an abstract class with annotations, the following code throws an exception;
$class = new \ReflectionClass($class);
if ($class->isAbstract()) {
thrownew \InvalidArgumentException(sprintf('Annotations from class "%s" cannot be read as it is abstract.', $class));
}
But the $class variable is now a ReflectionClass instance and the complete class file contents are shown in the exception.