vimeo/psalm

Is it possible to disable automatic detection of simple pure methods?

Open

#9 665 ouverte le 17 avr. 2023

Voir sur GitHub
 (4 commentaires) (0 réactions) (0 assignés)PHP (668 forks)batch import
Help wantedenhancementpure/immutable

Métriques du dépôt

Stars
 (5 369 stars)
Métriques de merge PR
 (Merge moyen 3j 12h) (5 PRs mergées en 30 j)

Description

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.

Guide contributeur