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
{{ message }}
This repository was archived by the owner on Jan 8, 2020. It is now read-only.
recently on my project I spotted that after introducing PHP >=5.5 ::CLASS constant in our code that is equal to FQCN of the class, autoload_classmap.php is generated incorrectly i.e. contains entries that have nothing to do this FCQN of the class like
It is because Zend\File\ClassFileLocator is looking for token 'class' (define ('T_CLASS', 356);) which is returned by token_get_all() not only at class declaration but also with ExampleClass::CLASS instruction and picks up whatever token is considered a class name which can be virtually anything around ExampleClass::CLASS instruction like 'innerJoin' or 'andwhere'.
Hi,
recently on my project I spotted that after introducing PHP >=5.5 ::CLASS constant in our code that is equal to FQCN of the class, autoload_classmap.php is generated incorrectly i.e. contains entries that have nothing to do this FCQN of the class like
It is because Zend\File\ClassFileLocator is looking for token 'class' (define ('T_CLASS', 356);) which is returned by token_get_all() not only at class declaration but also with ExampleClass::CLASS instruction and picks up whatever token is considered a class name which can be virtually anything around ExampleClass::CLASS instruction like 'innerJoin' or 'andwhere'.