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\ConstraintCode
protected function reduce() : Constraint {
$constraint = $this->constraint();
if ($constraint instanceof self) {
return $constraint->constraint()
->reduce();
}
return parent::reduce();
}