Skip to content

Add @psalm-pure to count assertion methods#355

Open
devbanana wants to merge 1 commit intowebmozarts:masterfrom
devbanana:add-psalm-pure-to-count-methods
Open

Add @psalm-pure to count assertion methods#355
devbanana wants to merge 1 commit intowebmozarts:masterfrom
devbanana:add-psalm-pure-to-count-methods

Conversation

@devbanana
Copy link
Copy Markdown

Added @psalm-pure to count(), minCount(), maxCount(), and countBetween(). Most other methods have it already but this was being handled as maybe impure by PHPStan on a project I'm working on so thought I'd add it.

Mark count(), minCount(), maxCount(), and countBetween() as pure so
Psalm permits their use in pure contexts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant