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

Breadcrumb

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

function Mixin::allNullOrNotEndsWith

@psalm-pure

Parameters

iterable<string|null> $value:

string $suffix:

string $message:

Return value

void

Throws

InvalidArgumentException

File

vendor/webmozart/assert/src/Mixin.php, line 2998

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\Assert

Code

public static function allNullOrNotEndsWith($value, $suffix, $message = '') {
    static::isIterable($value);
    foreach ($value as $entry) {
        null === $entry || static::notEndsWith($entry, $suffix, $message);
    }
}

API Navigation

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