-
-
Notifications
You must be signed in to change notification settings - Fork 932
Open
phpstan/phpstan-src
#4444Labels
Description
Bug report
in config objects/feature flag methods we sometimes use plain return true/false in code which will be swap from time to time.
its annoying that PHPStan now reports a too wide bool error:
Method HelloWorld::isMandatory() never returns false so the return type can be changed to true.
Code snippet that reproduces the problem
https://phpstan.org/r/f27b0a2e-1715-4052-85a8-add9422657b4
Expected output
maybe we should make the rule ignore these trivial methods?
Did PHPStan help you today? Did it make you happy in any way?
No response
bloep and matheuspolachini