Skip to content

Commit 6d93259

Browse files
authored
Merge pull request #124 from danog/patch-1
Allow running in PR
2 parents e610736 + 4c17270 commit 6d93259

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Hooks/TestCaseHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public static function afterStatementAnalysis(AfterClassLikeAnalysisEvent $event
167167
}
168168

169169
foreach ($specials['dataProvider'] as $line => $provider) {
170-
if (VersionUtils::packageVersionIs('vimeo/psalm', '<', '5.0')) {
170+
if (VersionUtils::packageVersionIs('vimeo/psalm', '<=', '4.99')) {
171171
$provider_docblock_location = clone $method_storage->location;
172172
$provider_docblock_location->setCommentLine($line);
173173
} else {
@@ -337,7 +337,7 @@ static function (
337337
$provider_docblock_location
338338
): void {
339339
if ($is_optional) {
340-
if (VersionUtils::packageVersionIs('vimeo/psalm', '<', '5.0')) {
340+
if (VersionUtils::packageVersionIs('vimeo/psalm', '<=', '4.99')) {
341341
$param_type = clone $param_type;
342342
$param_type->possibly_undefined = true;
343343
} else {

0 commit comments

Comments
 (0)