Skip to content

Commit d62ec03

Browse files
Bartłomiej Nowakbnowak
Bartłomiej Nowak
authored andcommitted
code review 2 removed mixed type which doesn't exist in <PHP8
1 parent f7bf1e0 commit d62ec03

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Symfony/MessageMapFactory.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,14 @@ private function guessHandledMessages(ClassReflection $reflectionClass): iterabl
122122
}
123123

124124
/**
125+
* @param mixed $index
126+
* @param mixed $value
125127
* @phpstan-assert-if-true class-string $index
126128
* @phpstan-assert-if-true array<string, mixed> $value
127129
* @phpstan-assert-if-false int $index
128130
* @phpstan-assert-if-false class-string $value
129131
*/
130-
private static function containOptions(mixed $index, mixed $value): bool
132+
private static function containOptions($index, $value): bool
131133
{
132134
if (is_string($index) && class_exists($index) && is_array($value)) {
133135
return true;

0 commit comments

Comments
 (0)