function ConjunctionInterceptor::assertAssertions

Parameters

Assertable[] $assertions:

1 call to ConjunctionInterceptor::assertAssertions()
ConjunctionInterceptor::__construct in misc/typo3/phar-stream-wrapper/src/Interceptor/ConjunctionInterceptor.php

File

misc/typo3/phar-stream-wrapper/src/Interceptor/ConjunctionInterceptor.php, line 55

Class

ConjunctionInterceptor

Namespace

TYPO3\PharStreamWrapper\Interceptor

Code

private function assertAssertions(array $assertions) {
    foreach ($assertions as $assertion) {
        if (!$assertion instanceof Assertable) {
            throw new \InvalidArgumentException(sprintf('Instance %s must implement Assertable', get_class($assertion)), 1539624719);
        }
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.