Skip to content

Dependency Hell while extension development #12443

@LastDragon-ru

Description

@LastDragon-ru

Feature request

When you install phpstan it comes with bundled packages. The problem is you never know which version will be used eg while unit testing if your package needs the same package. So your tests will fail randomly 😁1 I'm not sure how phpstan autoloader work, maybe the problem actual only for autoload.files?

Today's case (phpstan version version is outdated and not yet have Mbstring::mb_ltrim())

Error: Call to undefined method Symfony\Polyfill\Mbstring\Mbstring::mb_ltrim()

Image

Did PHPStan help you today? Did it make you happy in any way?

No response

Footnotes

  1. First attempt is fail, the second is fine.

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