function Mixin::nullOrIsMap
@psalm-pure @psalm-template T @psalm-param mixed|array<T>|null $array @psalm-assert array<string, T>|null $array
Parameters
mixed $array:
string $message:
Return value
void
Throws
File
-
vendor/
webmozart/ assert/ src/ Mixin.php, line 4871
Class
- Mixin
- This trait provides nurllOr*, all* and allNullOr* variants of assertion base methods. Do not use this trait directly: it will change, and is not designed for reuse.
Namespace
Webmozart\AssertCode
public static function nullOrIsMap($array, $message = '') {
null === $array || static::isMap($array, $message);
}