Bug report
| Question |
Answer |
| PHP-Scoper version |
The one in 4.6.5@0964604 2025-03-02 18:34:04 UTC |
| PHP version |
8.2.28 |
| Platform with version |
ubuntu-latest |
After a long time I tried the latest Box version in PHPStan again. The progress is great! A lot of issues went away and the scoped code is nicer. There are some new bugs that appeared:
- PHP-Scoper should understand that some strings that contain a valid internal PHP class name should not be prefixed. Some examples:
- 'Dom\NamedNodeMap'
+ '_PHPStan_checksum\Dom\NamedNodeMap'
- 'BcMath\Number'
+ '_PHPStan_checksum\BcMath\Number'
- 'Ds\Map'
+ _PHPStan_checksum\Ds\Map
- For some reason tests of some packages are suddenly included in the PHAR file. Namely:
Additionally, there's a specific bugfix in nikic/PHP-Parser 5.5.0 (for code to be usable on PHP 7.4, attribute and parameter cannot be on the same line). It'd be great if you could bump this in PHP-Scoper + Box and publish a new box.phar 😊
Thank you.
Bug report
After a long time I tried the latest Box version in PHPStan again. The progress is great! A lot of issues went away and the scoped code is nicer. There are some new bugs that appeared:
Additionally, there's a specific bugfix in nikic/PHP-Parser 5.5.0 (for code to be usable on PHP 7.4, attribute and parameter cannot be on the same line). It'd be great if you could bump this in PHP-Scoper + Box and publish a new box.phar 😊
Thank you.