Skip to content

Commit

Permalink
Allow running in PR
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Nov 1, 2022
1 parent e610736 commit 4c17270
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Hooks/TestCaseHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public static function afterStatementAnalysis(AfterClassLikeAnalysisEvent $event
}

foreach ($specials['dataProvider'] as $line => $provider) {
if (VersionUtils::packageVersionIs('vimeo/psalm', '<', '5.0')) {
if (VersionUtils::packageVersionIs('vimeo/psalm', '<=', '4.99')) {
$provider_docblock_location = clone $method_storage->location;
$provider_docblock_location->setCommentLine($line);
} else {
Expand Down Expand Up @@ -337,7 +337,7 @@ static function (
$provider_docblock_location
): void {
if ($is_optional) {
if (VersionUtils::packageVersionIs('vimeo/psalm', '<', '5.0')) {
if (VersionUtils::packageVersionIs('vimeo/psalm', '<=', '4.99')) {
$param_type = clone $param_type;
$param_type->possibly_undefined = true;
} else {
Expand Down

0 comments on commit 4c17270

Please sign in to comment.