-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add phpstan analysis #4458
Add phpstan analysis #4458
Conversation
35a5547
to
93ca91b
Compare
src/Node/Node.php
Outdated
@@ -186,17 +186,11 @@ public function removeAttribute(string $name): void | |||
unset($this->attributes[$name]); | |||
} | |||
|
|||
/** | |||
* @param string|int $name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Int is not accepted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is accepted explicitly in Twig 4.0 (same for all similar methods).
Tests were already failing and fabbot error is unrelated |
@VincentLanglet Can you also rebase to see (as stof fixed a bunch of test issues) |
8d5d33e
to
06bfe63
Compare
I rebased and added back the In the next PR I'll try to bump level 4 |
Thank you @VincentLanglet. |
There is some fixes in this PR, would it be enough for a 3.15.1 version ? |
As suggested by @ruudk here: #4456 (comment)
I think it could be useful to add phpstan analysis on twig.
This is an example of all the things reported when checking level 3 PHPStan (more will get more errors to fix).