Skip to content

Increase PHPStan level #26

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

Merged
merged 4 commits into from
Jul 18, 2020
Merged

Increase PHPStan level #26

merged 4 commits into from
Jul 18, 2020

Conversation

ausi
Copy link
Member

@ausi ausi commented Jul 11, 2020

Level 6 seems impossible because psalm fights the changes required for phpstan. Fixed by adding @phpstan- and @psalm- type annotations.

But the level 5 changes can be used I think.

/cc @m-vo

@ausi ausi self-assigned this Jul 11, 2020
@ausi
Copy link
Member Author

ausi commented Jul 11, 2020

Level 6 works now, but we should probaly revert 8bd8415 and find out what the issue is here.

@m-vo
Copy link
Member

m-vo commented Jul 11, 2020

see phpstan/phpstan-phpunit#77

@leofeyer
Copy link
Member

We should maybe rethink if we really need both PhpStan and Psalm. 🙈

@ausi
Copy link
Member Author

ausi commented Jul 17, 2020

I would merge this as it is now, and create a new PR that reverts the 0 + changes to merge once phpstan/phpstan-phpunit#77 was resolved.

@leofeyer
Copy link
Member

leofeyer commented Jul 17, 2020

I would prefer to wait until the PHPStan devs have signaled that they want to fix phpstan/phpstan-phpunit#77. I am not that big a fan of merging pointless workarounds into production code just to fix issues in some dev tools.

@ausi
Copy link
Member Author

ausi commented Jul 17, 2020

The workaround only affects the ImageTest class. Production code is clean ☺️

@leofeyer
Copy link
Member

Ok, that's better than. Still a pointless workaround. 🙈

@ausi ausi merged commit bb9c4b4 into contao:master Jul 18, 2020
@ausi ausi deleted the fix/phpstan-level branch July 18, 2020 21:39
@ausi ausi mentioned this pull request Jul 18, 2020
@ausi
Copy link
Member Author

ausi commented Jul 18, 2020

Pull request that reverts the workaround: #27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants