Skip to content

Commit af088f9

Browse files
authored
Merge pull request #10975 from VincentLanglet/phpstanPure
2 parents 2fa66e0 + a926499 commit af088f9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Psalm/Internal/PhpVisitor/Reflector/FunctionLikeDocblockParser.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,7 @@ public static function parse(
574574

575575
$info->variadic = isset($parsed_docblock->tags['psalm-variadic']);
576576
$info->pure = isset($parsed_docblock->tags['psalm-pure'])
577+
|| isset($parsed_docblock->tags['phpstan-pure'])
577578
|| isset($parsed_docblock->tags['pure']);
578579

579580
if (isset($parsed_docblock->tags['psalm-mutation-free'])) {

0 commit comments

Comments
 (0)