We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
php-scoper.phar -V
This is the scoped code from symfony/polyfill-php80:
symfony/polyfill-php80
<?php namespace _PHPStan_64f6b4b37; if (\PHP_VERSION_ID < 80000) { interface Stringable { /** * @return string */ public function __toString(); } }
We do have the following statement in the autoloader:
humbug_phpscoper_expose_class('Stringable', '_PHPStan_64f6b4b37\Stringable');
But since there is no class_alias() statement it does nothing.
class_alias()
The same problem will happen with:
<?php namespace _PHPStan_64f6b4b37; if (\PHP_VERSION_ID < 80000) { class ValueError extends \Error { } }
The text was updated successfully, but these errors were encountered:
WIP: fix polyfill declaration
8c0e837
Closes humbug#965.
As show in #966, the issue is with class_alias() in nested statements. Excluded symbols are otherwise already aliased.
Sorry, something went wrong.
fix: Append alias class statement correct when the class/interface is…
2418178
… within a statement (#966) Closes #965.
Successfully merging a pull request may close this issue.
Bug report
php-scoper.phar -V
or `composer showThis is the scoped code from
symfony/polyfill-php80
:We do have the following statement in the autoloader:
But since there is no
class_alias()
statement it does nothing.The same problem will happen with:
The text was updated successfully, but these errors were encountered: