Skip to content

Commit 1421076

Browse files
committed
Improve
1 parent e588977 commit 1421076

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Hooks/TestCaseHandler.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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, '::')) {

0 commit comments

Comments
 (0)