Skip to content
This repository was archived by the owner on Dec 9, 2019. It is now read-only.
This repository was archived by the owner on Dec 9, 2019. It is now read-only.

Conflict with php-di #19

Closed
Closed
@hultberg

Description

@hultberg

PHP-DI has a CompiledContainer cache and depends on nikic/php-parser, but as this package has replace on nikic/php-parser, that package is never installed when phpstan-shim is installed as a development dependency and having run composer install --no-dev. Composer autoloader fails when loading my app with:

PHP Fatal error:  Class 'PhpParser\NodeVisitorAbstract' not found in /srv/app/vendor/jeremeamia/SuperClosure/src/Analyzer/Visitor/ClosureLocatorVisitor.php on line 17

Fatal error: Class 'PhpParser\NodeVisitorAbstract' not found in /srv/app/vendor/jeremeamia/SuperClosure/src/Analyzer/Visitor/ClosureLocatorVisitor.php on line 17
/srv/app (master ✘)✹ ᐅ composer why nikic/php-parser    
jeremeamia/SuperClosure  2.4.0   requires  nikic/php-parser (^1.2|^2.0|^3.0|^4.0)  
php-di/php-di            6.0.2   requires  nikic/php-parser (^2.0|^3.0|^4.0)       
phpstan/phpstan-shim     0.10.1  replaces  nikic/php-parser (^4.0.2)               
psy/psysh                v0.9.6  requires  nikic/php-parser (~1.3|~2.0|~3.0|~4.0)

/srv/app (master ✘)✹ ᐅ composer why jeremeamia/superclosure
php-di/php-di  6.0.2  requires  jeremeamia/superclosure (^2.0)

I have tried to both 0.10.1 and master branch. For me, this package is unusable in my application.

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