PavelJurasek / PHPWander

23 stars 7 forks source link

PHP Fatal Error trying to reproduce the instructions from the README #5

Closed brice-morin closed 6 years ago

brice-morin commented 6 years ago

I have installed PHP 7.2.6, Composer and PHPWander on my Windows machine.

When running ./bin/phpwander analyse tests/cases/ --autoload, I get this error:

PHP Fatal error:  Uncaught TypeError: Argument 1 passed to PHPStan\Analyser\Error::__construct() must be of the type string, null given, called in ..../PHPWander\src\Analyser\Analyser.php on line 205 and defined in ....\PHPWander\vendor\phpstan\phpstan\src\Analyser\Error.php:20

I guess this has to do with the funny Windows \ in paths instead of proper /

PavelJurasek commented 6 years ago

Hello, thank you for the report! I replaced all occurrences of hard-coded directory separators in ef1723d644d37ec2a00e80658098599ad8919057, but I cannot test it on Windows myself. I'll be happy for further feedback so that it can be resolved.

brice-morin commented 6 years ago

Great, thanks! This seems to work. At least I was able to run tests/cases/0

I however have some issues for the cases relying on msqli (but I will create a separate issue, so we can consider this one closed).