-
Notifications
You must be signed in to change notification settings - Fork 312
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
MacOS 12.1 PHP 8.1 installed via Brew, Deprecated Warnings on HumbugBox3100 #700
Comments
Maybe related -- box-project/box builds are failing since the release of 3.14.0. Seems possibly related to Composer 2.2 changes. Damn dependency hell, eh? :-) |
😕 Yeah, that's a PHP 8 compatibility issue for the pre-built Phars. Types will be the death of us. Can you get me the output of |
Not related to Brew or Mac OS X, I can repro with manual .phar installation on FreeBSD 13 or on Debian 11. See humbug/php-scoper#539 for the upstream issue. Upstream wants a proper refactoring of the attributs, not a quick and dirty solution, see box-project/box#585. That's not the only library to have this issue. We can also see it in Symfony VarDumper:
|
The issue can't be repro on fresh psysh repository clone, then a composer install, so I suspect stale Composer dependencies in the phar. |
|
It looks like the phars need to be rebuilt with a newer version of Box. The corresponding changes were fixed in box-project/box#557 and should be available as of release 3.14.0. According to the error message, an older version of Box is used to build the phars ( UPD: building with Box 3.16.0 produces a package that doesn't produce the errors:
|
Wicked. Thanks @morozov ! Can I help make that happen? |
It'll happen on the next release. We're waiting for an upstream fix for a different issue in symfony/console. |
This is fixed with the latest release. Thanks for your patience. |
I've upgraded to 0.11.2 and can confirm that it is working beautifully on FreeBSD 12 and macOS 12.2.1 with PHP 7.3.5 and PHP 8.1.0. Cheers, and thanks @bobthecow !!! |
I run
psysh
on other machines using PHP 7.3 without issue.As Apple removed PHP in MacOS 12, I installed it via Brew.
Now when I run psysh, I get these warnings on most every command. (I replaced the actual username)
As this is part of the phar, I'm not sure how to fix. Is this a PHP 7 vs 8 issue?
The text was updated successfully, but these errors were encountered: