From a9264997d58c07fdc498447528c99e1781842fdc Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Wed, 15 May 2024 17:54:15 +0200 Subject: [PATCH] Add support for phpstan-pure --- .../Internal/PhpVisitor/Reflector/FunctionLikeDocblockParser.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Psalm/Internal/PhpVisitor/Reflector/FunctionLikeDocblockParser.php b/src/Psalm/Internal/PhpVisitor/Reflector/FunctionLikeDocblockParser.php index ad3f0a4a0d7..e44c08bfbc7 100644 --- a/src/Psalm/Internal/PhpVisitor/Reflector/FunctionLikeDocblockParser.php +++ b/src/Psalm/Internal/PhpVisitor/Reflector/FunctionLikeDocblockParser.php @@ -574,6 +574,7 @@ public static function parse( $info->variadic = isset($parsed_docblock->tags['psalm-variadic']); $info->pure = isset($parsed_docblock->tags['psalm-pure']) + || isset($parsed_docblock->tags['phpstan-pure']) || isset($parsed_docblock->tags['pure']); if (isset($parsed_docblock->tags['psalm-mutation-free'])) {