-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
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
phpdbg_*() functions are scoped to PHPUnit\phpdbg_*() #4211
Comments
@theofidry @sebastianfeldmann How do we fix this? Is this something missing on PHPUnit's side (as in how we use PHP-Scoper) or is this a problem in PHP-Scoper (as in it should know that |
There is two solutions for it:
Those two are not mutually exclusive, just potentially redundant. Also note that there is a discussion to allow this part to be directly configurable from the config (see humbug/php-scoper#303 (comment)) which would make it even faster to patch (as a workaround – it doesn't prevent having to patch upstream for a "cleaner" solution) |
Ah right, meanwhile the 3rd quick & dirty alternative is to leverage the patchers to replace the incorrect replacements |
I have created pull requests for both php-scoper and phpstorm-stubs which (hopefully) teach these two about the |
👍 will try to go through my OSS notifs tomorrow |
JetBrains/phpstorm-stubs#793 has been merged. |
@theofidry Any update on this? Thanks! |
Should be fixed in 0.13.2 |
PHP-Scoper, for example, transforms this line
to
which, of course, does not work properly anymore.
The text was updated successfully, but these errors were encountered: