Skip to content

Commit

Permalink
[DowngradePhp81] Fix algo not on list on DowngradeHashAlgorithmXxHash…
Browse files Browse the repository at this point in the history
…Rector
  • Loading branch information
samsonasik committed Oct 20, 2023
1 parent 9fb5952 commit 5ecd9f5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ private function shouldSkip(FuncCall $funcCall): bool
/**
* @param Arg[] $args
*/
private function getHashAlgorithm(array $args): string
private function getHashAlgorithm(array $args): ?string
{
$arg = null;

Expand All @@ -137,7 +137,7 @@ private function getHashAlgorithm(array $args): string
$algorithmNode instanceof ConstFetch => $this->mapConstantToString(
$this->valueResolver->getValue($algorithmNode)
),
default => throw new ShouldNotHappenException(),
default => null,
};
}

Expand Down

0 comments on commit 5ecd9f5

Please sign in to comment.