File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -167,12 +167,12 @@ public static function afterStatementAnalysis(AfterClassLikeAnalysisEvent $event
167167 }
168168
169169 foreach ($ specials ['dataProvider ' ] as $ line => $ provider ) {
170- if (VersionUtils::packageVersionIs ('vimeo/psalm ' , '>= ' , '5.0 ' )) {
171- /** @var CodeLocation */
172- $ provider_docblock_location = $ method_storage ->location ->setCommentLine ($ line );
173- } else {
170+ if (VersionUtils::packageVersionIs ('vimeo/psalm ' , '< ' , '5.0 ' )) {
174171 $ provider_docblock_location = clone $ method_storage ->location ;
175172 $ provider_docblock_location ->setCommentLine ($ line );
173+ } else {
174+ /** @var CodeLocation */
175+ $ provider_docblock_location = $ method_storage ->location ->setCommentLine ($ line );
176176 }
177177
178178 if (false !== strpos ($ provider , ':: ' )) {
You can’t perform that action at this time.
0 commit comments