You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use PropertyHookType; in Generator.php is [...] transformed into use PHPUnitPHAR\PropertyHookType;.
The above seems to happen because PHP-Scoper 0.18.15 comes with version v2024.2 of the jetbrains/phpstorm-stubs which does not know about classes such as PropertyHookType that were introduced in PHP 8.4. The first version of jetbrains/phpstorm-stubs to support PHP 8.4 is v2024.3.
The text was updated successfully, but these errors were encountered:
I have updated the dependency in #1100, built a PHAR of PHP-Scoper using make bin/php-scoper.phar, and then copied bin/php-scoper.phar to tools/php-scoper in my checkout of branch 11.5 of PHPUnit's Git repository. I then used ant phar-snapshot to build a PHAR for PHPUnit using the php-scoper PHAR that has version v2024.3 of jetbrains/phpstorm-stubs.
I can now confirm that PHP-Scoper does not transform use PropertyHookType; into use PHPUnitPHAR\PropertyHookType; when version v2024.3 of jetbrains/phpstorm-stubs is used.
Quoting myself from #1092 (comment):
The above seems to happen because PHP-Scoper 0.18.15 comes with version
v2024.2
of thejetbrains/phpstorm-stubs
which does not know about classes such asPropertyHookType
that were introduced in PHP 8.4. The first version ofjetbrains/phpstorm-stubs
to support PHP 8.4 isv2024.3
.The text was updated successfully, but these errors were encountered: