Closed mairo744 closed 1 year ago
Some things here in rules.neon aren't about new custom rules, but also about changing default options from PHPStan core. Looking at https://github.com/phpstan/phpstan-strict-rules/blob/1.5.x/rules.neon they're at the beginning in the parameters
section.
And they're documented on the website: https://phpstan.org/config-reference#stricter-analysis
I think the option you want to turn off is reportMaybesInMethodSignatures
.
Wow, this was fast response.
Some things here in rules.neon aren't about new custom rules, but also about changing default options from PHPStan core.
Thank you, I do not know about that.
I think the option you want to turn off is reportMaybesInMethodSignatures.
Yeah, it is reportMaybesInMethodSignatures
, thanks.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Hi,
phpstan.neon.dist:
Result:
My goal was disable this rule
should be contravariant with parameter $value (mixed) ...
because it is doctrine custom type which extends general string typeDoctrine\DBAL\Types\StringType
. Unfortunately doctrine string type use mixed type but I want to be more strict.