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

Breadcrumb

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

function Assert::reportInvalidArgument

@psalm-pure this method is not supposed to perform side-effects @psalm-return never

Parameters

string $message:

Throws

InvalidArgumentException

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

... See full list

File

vendor/webmozart/assert/src/Assert.php, line 2072

Class

Assert
Efficient assertions to validate the input/output of your methods.

Namespace

Webmozart\Assert

Code

protected static function reportInvalidArgument($message) {
    throw new InvalidArgumentException($message);
}

API Navigation

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