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.

贡献者指南