Skip to content

Current list of bugs preventing adoption of latest version by PHPStanΒ #1122

@ondrejmirtes

Description

@ondrejmirtes

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:

  1. 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
  1. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions