function Mixin::allNullOrKeyNotExists
@psalm-pure
Parameters
iterable<array|null> $array:
string|int $key:
string $message:
Return value
void
Throws
File
-
vendor/
webmozart/ assert/ src/ Mixin.php, line 4478
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 allNullOrKeyNotExists($array, $key, $message = '') {
static::isIterable($array);
foreach ($array as $entry) {
null === $entry || static::keyNotExists($entry, $key, $message);
}
}