From 969f0b71c054ee80c2ba2e2bd91b6800e5c739ce Mon Sep 17 00:00:00 2001 From: "S. de Rooij" Date: Thu, 5 Feb 2026 11:18:19 +0100 Subject: [PATCH] Use of 'static' in callable is deprecated See https://www.php.net/manual/en/migration82.deprecated.php --- src/Assert.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Assert.php b/src/Assert.php index a667b13c..07cc1410 100644 --- a/src/Assert.php +++ b/src/Assert.php @@ -1111,7 +1111,7 @@ public static function notInArray(mixed $value, mixed $values, string $message = static::reportInvalidArgument(\sprintf( $message ?: '%2$s was not expected to contain a value. Got: %s', static::valueToString($value), - \implode(', ', \array_map(['static', 'valueToString'], $values)) + \implode(', ', \array_map(static::valueToString(...), $values)) )); }