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

Breadcrumb

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

function LogicalNot::reduce

Reduces the sub-expression starting at $this by skipping degenerate sub-expression and returns first descendant constraint that starts a non-reducible sub-expression.

See Constraint::reduce() for more.

Overrides Constraint::reduce

File

vendor/phpunit/phpunit/src/Framework/Constraint/Operator/LogicalNot.php, line 131

Class

LogicalNot
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit

Namespace

PHPUnit\Framework\Constraint

Code

protected function reduce() : Constraint {
    $constraint = $this->constraint();
    if ($constraint instanceof self) {
        return $constraint->constraint()
            ->reduce();
    }
    return parent::reduce();
}
RSS feed
Powered by Drupal