-
Notifications
You must be signed in to change notification settings - Fork 460
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
composer: allow symfony/service-contracts that allow PHP 8 #508
Conversation
Btw, what do you this package for? I never saw it used only by Symfony internally |
Hi, I thought that you're using the already prefixed phpstan/phpstan PHAR to bundle it with rector-prefixed? What do you need phpstan-src for? The package is mentioned in composer.json only to lock it to a version that still supports 7.1. |
To downgrade it to PHP 7.0 and bellow :)
I guess composer config platform version is better for that. |
Well you should use the contents of phpstan.phar in phpstan/phpstan as the base to downgrade further :) Is there any problem with that? |
That's the other way. You mean with box.phar? I haven't tried that yet |
Yes, you can extract it with box.phar. Alternatively, you can contribute the downgrading to PHPStan compiler process itself, so that even PHPStan users can take advantage of that :) |
I think it's chicken egg problem :) We'll try the box.phar approach, just have to figure out the shared php-parser code autoloading. |
I don't understand - I develop phpstan-src on PHP 8 without any tricks. See the CI. |
Yea, core repository and dependency behaves differently. Now it's not possible to install |
I'm trying to include phpstan.phar unpacked here: It would be great to somehow resolve including of |
Yes, that's not supported by design, the package isn't published to Packagist, everyone is supposed to use phpstan/phpstan. |
We're trying to install src to downgrade it, but this packages blocks it on PHP 8:
The very next patch version luckily allows PHP 8 :)