Skip to content
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

Various fixes #5859

Merged
merged 1 commit into from
Aug 7, 2021
Merged

Various fixes #5859

merged 1 commit into from
Aug 7, 2021

Conversation

kubawerlos
Copy link
Contributor

@kubawerlos kubawerlos commented Aug 6, 2021

Issues reported by phpstan/phpstan-strict-rules (which will be added in separate PR as it reports over 400 other issues).


if ($fixer instanceof FixerInterface) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The whole fix here is simply removing this if condition as $fixer is type-hinted to be FixerInterface.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hehe, i remember we were introducing the FixerInterface and not each of 200+ rules were yet following it. good old times

@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 92.304% when pulling 9fdfe3c on kubawerlos:various_fixes into bf8c21c on FriendsOfPHP:3.0.

@kubawerlos kubawerlos added the RTM Ready To Merge label Aug 7, 2021
@keradus keradus removed the RTM Ready To Merge label Aug 7, 2021
@keradus keradus added this to the 3.0.3 milestone Aug 7, 2021
@keradus
Copy link
Member

keradus commented Aug 7, 2021

Thank you @kubawerlos.

@keradus keradus merged commit 1b656b5 into PHP-CS-Fixer:3.0 Aug 7, 2021
@kubawerlos kubawerlos deleted the various_fixes branch August 7, 2021 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants