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

Breadcrumb

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

function Assert::stringNotEmpty

@psalm-pure @psalm-assert non-empty-string $value

Parameters

mixed $value:

string $message:

Throws

InvalidArgumentException

14 calls to Assert::stringNotEmpty()
Covers::create in vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Covers.php
DocBlockFactory::create in vendor/phpdocumentor/reflection-docblock/src/DocBlockFactory.php
Example::__construct in vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Example.php
Generic::create in vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Generic.php
Creates a new tag that represents any unknown tag type.
Method::create in vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Method.php

... See full list

File

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

Class

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

Namespace

Webmozart\Assert

Code

public static function stringNotEmpty($value, $message = '') {
    static::string($value, $message);
    static::notEq($value, '', $message);
}
RSS feed
Powered by Drupal