function Mixin::allNullOrIsNotA
@psalm-pure @psalm-template UnexpectedType of object @psalm-param class-string<UnexpectedType> $class @psalm-assert iterable<!UnexpectedType|null> $value @psalm-assert iterable<!class-string<UnexpectedType>|null> $value
Parameters
iterable<object|string|null> $value:
string $class:
string $message:
Return value
void
Throws
File
-
vendor/
webmozart/ assert/ src/ Mixin.php, line 1340
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 allNullOrIsNotA($value, $class, $message = '') {
static::isIterable($value);
foreach ($value as $entry) {
null === $entry || static::isNotA($entry, $class, $message);
}
}