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
Hi, we are using PHPStan and we have lot of tests analysed by phpstan, with data providers, that looks like this:
yield [
[
'a' => '1',
'b' => '0',
],
];
Since phpstan checks if class exists, it calls class_exists on strings and it throws exception Exception (Class name is empty) thrown while autoloading class 0.
While debugging i found out it is caused by the custom autoloader, here is minimal code to break things up:
Hi, we are using PHPStan and we have lot of tests analysed by phpstan, with data providers, that looks like this:
Since phpstan checks if class exists, it calls
class_exists
on strings and it throws exceptionException (Class name is empty) thrown while autoloading class 0.
While debugging i found out it is caused by the custom autoloader, here is minimal code to break things up:
It would be nice to make this package use composer autoloader (classmaps) or PSR-4 as suggested in #135 ?
I can send PR migrating this repository to PSR-4 as i can do it automatically with rector - https://github.com/rectorphp/rector
The text was updated successfully, but these errors were encountered: