Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Assert.php

88 calls to Assert::reportInvalidArgument()

Assert::alnum in vendor/webmozart/assert/src/Assert.php
@psalm-pure
Assert::alpha in vendor/webmozart/assert/src/Assert.php
@psalm-pure
Assert::boolean in vendor/webmozart/assert/src/Assert.php
@psalm-pure @psalm-assert bool $value
Assert::classExists in vendor/webmozart/assert/src/Assert.php
@psalm-assert class-string $value
Assert::contains in vendor/webmozart/assert/src/Assert.php
@psalm-pure
Assert::countBetween in vendor/webmozart/assert/src/Assert.php
Does not check if $array is countable, this can generate a warning on php versions after 7.2.
Assert::digits in vendor/webmozart/assert/src/Assert.php
@psalm-pure
Assert::directory in vendor/webmozart/assert/src/Assert.php
Assert::email in vendor/webmozart/assert/src/Assert.php
Assert::endsWith in vendor/webmozart/assert/src/Assert.php
@psalm-pure
Assert::eq in vendor/webmozart/assert/src/Assert.php
Assert::false in vendor/webmozart/assert/src/Assert.php
@psalm-pure @psalm-assert false $value
Assert::file in vendor/webmozart/assert/src/Assert.php
Assert::fileExists in vendor/webmozart/assert/src/Assert.php
Will also pass if $value is a directory, use Assert::file() instead if you need to be sure it is a file.
Assert::float in vendor/webmozart/assert/src/Assert.php
@psalm-pure @psalm-assert float $value
Assert::greaterThan in vendor/webmozart/assert/src/Assert.php
@psalm-pure
Assert::greaterThanEq in vendor/webmozart/assert/src/Assert.php
@psalm-pure
Assert::implementsInterface in vendor/webmozart/assert/src/Assert.php
@psalm-pure @psalm-template ExpectedType of object @psalm-param class-string<ExpectedType> $interface @psalm-assert class-string<ExpectedType> $value
Assert::inArray in vendor/webmozart/assert/src/Assert.php
Does strict comparison, so Assert::inArray(3, ['3']) does not pass the assertion.
Assert::integer in vendor/webmozart/assert/src/Assert.php
@psalm-pure @psalm-assert int $value
Assert::integerish in vendor/webmozart/assert/src/Assert.php
@psalm-pure @psalm-assert numeric $value
Assert::interfaceExists in vendor/webmozart/assert/src/Assert.php
@psalm-assert class-string $value
Assert::ip in vendor/webmozart/assert/src/Assert.php
Assert::ipv4 in vendor/webmozart/assert/src/Assert.php
Assert::ipv6 in vendor/webmozart/assert/src/Assert.php
Assert::isAnyOf in vendor/webmozart/assert/src/Assert.php
@psalm-pure @psalm-param array<class-string> $classes
Assert::isAOf in vendor/webmozart/assert/src/Assert.php
@psalm-pure @psalm-template ExpectedType of object @psalm-param class-string<ExpectedType> $class @psalm-assert ExpectedType|class-string<ExpectedType> $value
Assert::isArray in vendor/webmozart/assert/src/Assert.php
@psalm-pure @psalm-assert array $value
Assert::isArrayAccessible in vendor/webmozart/assert/src/Assert.php
@psalm-pure @psalm-assert array|ArrayAccess $value
Assert::isCallable in vendor/webmozart/assert/src/Assert.php
@psalm-pure @psalm-assert callable $value
Assert::isCountable in vendor/webmozart/assert/src/Assert.php
@psalm-pure @psalm-assert countable $value
Assert::isEmpty in vendor/webmozart/assert/src/Assert.php
@psalm-pure @psalm-assert empty $value
Assert::isInstanceOf in vendor/webmozart/assert/src/Assert.php
@psalm-pure @psalm-template ExpectedType of object @psalm-param class-string<ExpectedType> $class @psalm-assert ExpectedType $value
Assert::isInstanceOfAny in vendor/webmozart/assert/src/Assert.php
@psalm-pure @psalm-param array<class-string> $classes
Assert::isIterable in vendor/webmozart/assert/src/Assert.php
@psalm-pure @psalm-assert iterable $value
Assert::isList in vendor/webmozart/assert/src/Assert.php
@psalm-pure @psalm-assert list $array
Assert::isMap in vendor/webmozart/assert/src/Assert.php
@psalm-pure @psalm-template T @psalm-param mixed|array<T> $array @psalm-assert array<string, T> $array
Assert::isNotA in vendor/webmozart/assert/src/Assert.php
@psalm-pure @psalm-template UnexpectedType of object @psalm-param class-string<UnexpectedType> $class @psalm-assert !UnexpectedType $value @psalm-assert !class-string<UnexpectedType> $value
Assert::isTraversable in vendor/webmozart/assert/src/Assert.php
@psalm-pure @psalm-assert iterable $value
Assert::keyExists in vendor/webmozart/assert/src/Assert.php
@psalm-pure
Assert::keyNotExists in vendor/webmozart/assert/src/Assert.php
@psalm-pure
Assert::length in vendor/webmozart/assert/src/Assert.php
@psalm-pure
Assert::lengthBetween in vendor/webmozart/assert/src/Assert.php
Inclusive , so Assert::lengthBetween('asd', 3, 5); passes the assertion.
Assert::lessThan in vendor/webmozart/assert/src/Assert.php
@psalm-pure
Assert::lessThanEq in vendor/webmozart/assert/src/Assert.php
@psalm-pure
Assert::lower in vendor/webmozart/assert/src/Assert.php
@psalm-pure @psalm-assert lowercase-string $value
Assert::maxCount in vendor/webmozart/assert/src/Assert.php
Does not check if $array is countable, this can generate a warning on php versions after 7.2.
Assert::maxLength in vendor/webmozart/assert/src/Assert.php
Inclusive max.
Assert::methodExists in vendor/webmozart/assert/src/Assert.php
@psalm-pure @psalm-param class-string|object $classOrObject
Assert::methodNotExists in vendor/webmozart/assert/src/Assert.php
@psalm-pure @psalm-param class-string|object $classOrObject
Assert::minCount in vendor/webmozart/assert/src/Assert.php
Does not check if $array is countable, this can generate a warning on php versions after 7.2.
Assert::minLength in vendor/webmozart/assert/src/Assert.php
Inclusive min.
Assert::natural in vendor/webmozart/assert/src/Assert.php
@psalm-pure @psalm-assert positive-int|0 $value
Assert::notContains in vendor/webmozart/assert/src/Assert.php
@psalm-pure
Assert::notEmpty in vendor/webmozart/assert/src/Assert.php
@psalm-pure @psalm-assert !empty $value
Assert::notEndsWith in vendor/webmozart/assert/src/Assert.php
@psalm-pure
Assert::notEq in vendor/webmozart/assert/src/Assert.php
Assert::notFalse in vendor/webmozart/assert/src/Assert.php
@psalm-pure @psalm-assert !false $value
Assert::notInstanceOf in vendor/webmozart/assert/src/Assert.php
@psalm-pure @psalm-template ExpectedType of object @psalm-param class-string<ExpectedType> $class @psalm-assert !ExpectedType $value
Assert::notNull in vendor/webmozart/assert/src/Assert.php
@psalm-pure @psalm-assert !null $value
Assert::notRegex in vendor/webmozart/assert/src/Assert.php
@psalm-pure
Assert::notSame in vendor/webmozart/assert/src/Assert.php
@psalm-pure
Assert::notStartsWith in vendor/webmozart/assert/src/Assert.php
@psalm-pure
Assert::notWhitespaceOnly in vendor/webmozart/assert/src/Assert.php
@psalm-pure
Assert::null in vendor/webmozart/assert/src/Assert.php
@psalm-pure @psalm-assert null $value
Assert::numeric in vendor/webmozart/assert/src/Assert.php
@psalm-pure @psalm-assert numeric $value
Assert::object in vendor/webmozart/assert/src/Assert.php
@psalm-pure @psalm-assert object $value
Assert::positiveInteger in vendor/webmozart/assert/src/Assert.php
@psalm-pure @psalm-assert positive-int $value
Assert::propertyExists in vendor/webmozart/assert/src/Assert.php
@psalm-pure @psalm-param class-string|object $classOrObject
Assert::propertyNotExists in vendor/webmozart/assert/src/Assert.php
@psalm-pure @psalm-param class-string|object $classOrObject
Assert::range in vendor/webmozart/assert/src/Assert.php
Inclusive range, so Assert::(3, 3, 5) passes.
Assert::readable in vendor/webmozart/assert/src/Assert.php
Assert::regex in vendor/webmozart/assert/src/Assert.php
@psalm-pure
Assert::resource in vendor/webmozart/assert/src/Assert.php
@psalm-pure @psalm-assert resource $value
Assert::same in vendor/webmozart/assert/src/Assert.php
@psalm-pure
Assert::scalar in vendor/webmozart/assert/src/Assert.php
@psalm-pure @psalm-assert scalar $value
Assert::startsWith in vendor/webmozart/assert/src/Assert.php
@psalm-pure
Assert::startsWithLetter in vendor/webmozart/assert/src/Assert.php
@psalm-pure
Assert::string in vendor/webmozart/assert/src/Assert.php
@psalm-pure @psalm-assert string $value
Assert::subclassOf in vendor/webmozart/assert/src/Assert.php
@psalm-pure @psalm-template ExpectedType of object @psalm-param class-string<ExpectedType> $class @psalm-assert class-string<ExpectedType>|ExpectedType $value
Assert::throws in vendor/webmozart/assert/src/Assert.php
@psalm-param class-string<Throwable> $class
Assert::true in vendor/webmozart/assert/src/Assert.php
@psalm-pure @psalm-assert true $value
Assert::unicodeLetters in vendor/webmozart/assert/src/Assert.php
@psalm-pure
Assert::uniqueValues in vendor/webmozart/assert/src/Assert.php
Does non strict comparisons on the items, so ['3', 3] will not pass the assertion.
Assert::upper in vendor/webmozart/assert/src/Assert.php
@psalm-pure @psalm-assert !lowercase-string $value
Assert::uuid in vendor/webmozart/assert/src/Assert.php
@psalm-pure
Assert::validArrayKey in vendor/webmozart/assert/src/Assert.php
Checks if a value is a valid array key (int or string).
Assert::writable in vendor/webmozart/assert/src/Assert.php

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal