vimeo/psalm
Vedi su GitHubIs it possible to disable automatic detection of simple pure methods?
Open
#9665 aperta il 17 apr 2023
Help wantedenhancementpure/immutable
Metriche repository
- Star
- (5369 star)
- Metriche merge PR
- (Merge medio 3g 12h) (5 PR mergiate in 30 g)
Descrizione
This is possible currently: https://psalm.dev/r/b2a9011f65
However, the library might change the following way, making it break: https://psalm.dev/r/7e645e6b69
This could be solved by making Psalm require to always explicitly define pureness as part of the method signature. At least, it would be sane to have a warning on missing pure annotations.