Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

composer: allow Symfony 5 #22

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

Closed
TomasVotruba wants to merge 1 commit into phpstan:master from TomasVotruba:patch-1
Closed

composer: allow Symfony 5 #22

TomasVotruba wants to merge 1 commit into phpstan:master from TomasVotruba:patch-1

Conversation

@TomasVotruba
Copy link
Contributor

@TomasVotruba TomasVotruba commented Nov 23, 2019

No description provided.

pepakriz reacted with thumbs up emoji hrach reacted with thumbs down emoji
Copy link
Contributor

hrach commented Nov 23, 2019

Omfg. Please, Ondřej, merge this. This is 4th in a week.

Copy link
Member

Wake up. It doesn't make sense and doesn't solve any problem.

Copy link
Contributor Author

It actually blocks the install

image

pepakriz reacted with thumbs up emoji

Copy link
Member

Some time ago I split the source code in phpstan/phpstan into phpstan/phpstan-src. phpstan-src isn't a published Packagist package. That's why it doesn't have to support Symfony 5 here. It might make sense to help me upgrade to Symfony 5 to improve the contributor experience of PHPStan itself, but not for its users. That's not a pressing issue and I guess not a goal of this PR.

When PHPStan 0.12 is released in a week, phpstan/phpstan won't depend on Symfony at all, there will be no conflict. Until then, if you want to use Symfony 5, you can use phpstan/phpstan-shim.

Don't force me to merge something that doesn't make any, even marginal, technical sense. You're just behind the current developer status of the repository.

Copy link
Contributor

Any reason why not to merge it to the 0.11.x branch? Because in our project we currently can't use shim version (a lot of customizations...)

Copy link
Member

@pepakriz If you can't use the shim version now, you won't be able to use PHPStan 0.12 at all. Please tell me what's blocking you and I'll try to look into it.

Copy link
Contributor

@ondrejmirtes 0.12 is not released yet and the current master branch is very unstable (tested a week ago). I know we should switch to shim, but it takes some time and Symfony 5 is already released and we'd like to use it.

Copy link
Contributor Author

TomasVotruba commented Nov 23, 2019
edited
Loading

Shim doesn't help. Same phpstan command that worked before now fails:

image

Copy link
Member

Yes, if you have custom compiler extensions, you're not compatible with phpstan-shim and you're not going to be compatible with PHPStan 0.12. Since compiler extensions are only for some syntax sugar inside configuration files, you can always live without them.

I need help testing this from you guys, I'm surprised you're finding about this now.

Copy link
Contributor Author

Copy link
Member

You need to get rid of the DecoratorExtension here: https://github.com/Symplify/PHPStanExtensions/blob/master/config/config.neon

Copy link
Member

If I understand its usage correctly, it's breaking conditionalTags section that some PHPStan extensions use. The phpstan.rules.rule tag shouldn't always be applied.

Copy link
Member

@TomasVotruba Also I realized you're not able to use custom errors formatters with phpstan-shim which is something I'll fix before 0.12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /