Skip to content

Commit

Permalink
code review 2 removed mixed type which doesn't exist in <PHP8
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartłomiej Nowak authored and bnowak committed Nov 7, 2024
1 parent f7bf1e0 commit d62ec03
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Symfony/MessageMapFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,14 @@ private function guessHandledMessages(ClassReflection $reflectionClass): iterabl
}

/**
* @param mixed $index
* @param mixed $value
* @phpstan-assert-if-true class-string $index
* @phpstan-assert-if-true array<string, mixed> $value
* @phpstan-assert-if-false int $index
* @phpstan-assert-if-false class-string $value
*/
private static function containOptions(mixed $index, mixed $value): bool
private static function containOptions($index, $value): bool
{
if (is_string($index) && class_exists($index) && is_array($value)) {
return true;
Expand Down

0 comments on commit d62ec03

Please sign in to comment.