It seems like $data['busName'] ?? null can also be of type null; however, parameter $busName of TMV\Laminas\Messenger\Fa...eFactory::__construct() does only seem to accept string, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
34
return new self(/** @scrutinizer ignore-type */ $data['busName'] ?? null);
Loading history...
35
}
36
2
37
1
/**
38
1
* @psalm-api
39
1
*
40
* @param array<int, mixed> $arguments
41
*/
42
public static function __callStatic(string $name, array $arguments): MiddlewareInterface
43
1
{
44
if (! array_key_exists(0, $arguments) || ! $arguments[0] instanceof ContainerInterface) {