This commit is contained in:
Daniil Gentili 2022-10-31 21:44:32 +01:00
parent e5889774b0
commit 1421076bc8

View File

@ -167,12 +167,12 @@ class TestCaseHandler implements
}
foreach ($specials['dataProvider'] as $line => $provider) {
if (VersionUtils::packageVersionIs('vimeo/psalm', '>=', '5.0')) {
/** @var CodeLocation */
$provider_docblock_location = $method_storage->location->setCommentLine($line);
} else {
if (VersionUtils::packageVersionIs('vimeo/psalm', '<', '5.0')) {
$provider_docblock_location = clone $method_storage->location;
$provider_docblock_location->setCommentLine($line);
} else {
/** @var CodeLocation */
$provider_docblock_location = $method_storage->location->setCommentLine($line);
}
if (false !== strpos($provider, '::')) {