Skip to content

Commit a518094

Browse files
authored
Use of 'static' in callable is deprecated (#340)
1 parent 5124865 commit a518094

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Assert.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,7 @@ public static function notInArray(mixed $value, mixed $values, string $message =
11111111
static::reportInvalidArgument(\sprintf(
11121112
$message ?: '%2$s was not expected to contain a value. Got: %s',
11131113
static::valueToString($value),
1114-
\implode(', ', \array_map(['static', 'valueToString'], $values))
1114+
\implode(', ', \array_map(static::valueToString(...), $values))
11151115
));
11161116
}
11171117

0 commit comments

Comments
 (0)