Skip to content

v0.18.19 not installed with BOX 4.7 #1202

@llaville

Description

@llaville

Bug report

Question Answer
PHP-Scoper version 0.18.19
PHP version 8.2.30
Platform with version Ubuntu/WSL2/Docker
composer require humbug/box ^4.7

BOX 4.7 is installed but not with the latest version available of PHP-Scoper (0.18.19)

After analyzing dependencencies, Scoper 0.18.19 used

"jetbrains/phpstorm-stubs": "dev-master",

Remember that Composer minimum-stability is stable and not dev.
This is the reason why, when you install BOX 4.7 source code you got PHP-Scoper 0.18.19, because

https://github.com/box-project/box/blob/4.7.0/composer.json#L69

But we still get previous version 0.18.18, when we try to install BOX 4.7 as a dependency of User project !

I recommend to update jetbrains/phpstorm-stubs to (perharps latest constraint) ^2025.1

As a workaround, I've updated my own project with llaville/box-manifest@8407e92

That gave me expected results

Image

Current Output

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions