mirror of
https://github.com/danog/psalm-plugin-phpunit.git
synced 2024-12-02 09:27:56 +01:00
Improve
This commit is contained in:
parent
e5889774b0
commit
1421076bc8
@ -167,12 +167,12 @@ class TestCaseHandler implements
|
|||||||
}
|
}
|
||||||
|
|
||||||
foreach ($specials['dataProvider'] as $line => $provider) {
|
foreach ($specials['dataProvider'] as $line => $provider) {
|
||||||
if (VersionUtils::packageVersionIs('vimeo/psalm', '>=', '5.0')) {
|
if (VersionUtils::packageVersionIs('vimeo/psalm', '<', '5.0')) {
|
||||||
/** @var CodeLocation */
|
|
||||||
$provider_docblock_location = $method_storage->location->setCommentLine($line);
|
|
||||||
} else {
|
|
||||||
$provider_docblock_location = clone $method_storage->location;
|
$provider_docblock_location = clone $method_storage->location;
|
||||||
$provider_docblock_location->setCommentLine($line);
|
$provider_docblock_location->setCommentLine($line);
|
||||||
|
} else {
|
||||||
|
/** @var CodeLocation */
|
||||||
|
$provider_docblock_location = $method_storage->location->setCommentLine($line);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (false !== strpos($provider, '::')) {
|
if (false !== strpos($provider, '::')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user