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
Current Output

Bug report
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
php-scoper/composer.json
Line 23 in 7a8d98e
Remember that Composer
minimum-stabilityis 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-stubsto (perharps latest constraint)^2025.1As a workaround, I've updated my own project with llaville/box-manifest@8407e92
That gave me expected results
Current Output