From 6916d414e2f4589e5b9f755cda28c161d9d4a735 Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Mon, 7 Nov 2022 10:22:33 +0100 Subject: [PATCH] Add support for phpstan-param-out --- src/Psalm/Internal/Scanner/DocblockParser.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Psalm/Internal/Scanner/DocblockParser.php b/src/Psalm/Internal/Scanner/DocblockParser.php index 22ae1ed25..329fed061 100644 --- a/src/Psalm/Internal/Scanner/DocblockParser.php +++ b/src/Psalm/Internal/Scanner/DocblockParser.php @@ -258,9 +258,11 @@ class DocblockParser if (isset($docblock->tags['param-out']) || isset($docblock->tags['psalm-param-out']) + || isset($docblock->tags['phpstan-param-out']) ) { $docblock->combined_tags['param-out'] = ($docblock->tags['param-out'] ?? []) + + ($docblock->tags['phpstan-param-out'] ?? []) + ($docblock->tags['psalm-param-out'] ?? []); } }