Skip to content

Commit

Permalink
code style
Browse files Browse the repository at this point in the history
  • Loading branch information
kkmuffme committed Jun 12, 2023
1 parent cd1cd11 commit d2e04d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,7 @@ public static function getFunctionReturnType(FunctionReturnTypeProviderEvent $ev
return Type::getNonEmptyString();
}

/**
* if we didn't have a valid result, the pattern is invalid or not yet supported by the return type provider
* PHP 7 can have false here
*
* @psalm-suppress RedundantConditionGivenDocblockType
*/
// if we didn't have a valid result, the pattern is invalid or not yet supported by the return type provider
if ($initial_result === null || $initial_result === false) {
return null;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/ReturnTypeProvider/SprintfTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public function providerValidCodeParse(): iterable
'$val===' => 'string',
],
'ignored_issues' => [
'InvalidArgument'
'InvalidArgument',
],
];
}
Expand Down

0 comments on commit d2e04d0

Please sign in to comment.