vimeo/psalm

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

Open

#9,665 建立於 2023年4月17日

在 GitHub 查看
 (4 留言) (0 反應) (0 負責人)PHP (668 fork)batch import
Help wantedenhancementpure/immutable

倉庫指標

Star
 (5,369 star)
PR 合併指標
 (平均合併 3天 12小時) (30 天內合併 5 個 PR)

描述

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.

貢獻者指南