-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
discussion: PHPStan 11 array rules #8011
base: master
Are you sure you want to change the base?
Conversation
@localheinz @julienfalque @kubawerlos @SpacePossum @Wirone |
I do not think this is good idea until phpstan/phpstan#8438 is implemented. |
@keradus what would be the real added value when we enable this? I believe we currently enforce proper array shapes for new code, and have already errors dump in the baseline. Enabling this option would probably make it even stricter, but I would rather prefer resolving root problems like fixers' config shapes, then would go into stricter analysis. Can you provide examples of what currently is not reported by tests/SA, which would be reported when these options are enabled? |
@Wirone overall you recommended that rule to me somewhere so I was not looking into it deeply.
so it finds some interesting concerns I like the argument of |
shall we enable?
(eg enable with exception counter).
it's like ~900 violations in current codebase.