$declaration of type array|string[] is incompatible with the type object|string expected by parameter $objectOrClass of ReflectionClass::__construct().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
42
$reflectionClass = self::$reflectionsCache[$declaration] ??= new \ReflectionClass(/** @scrutinizer ignore-type */ $declaration);