Editor PHP 2.4.0

CompilingMatcher
in package

Helper class to evaluate constraint by compiling and reusing the code to evaluate

Table of Contents

Methods

clear()  : void
Clears the memoization cache once you are done
match()  : bool
Evaluates the expression: $constraint match $operator $version

Methods

clear()

Clears the memoization cache once you are done

public static clear() : void

match()

Evaluates the expression: $constraint match $operator $version

public static match(ConstraintInterface $constraint, int $operator, string $version) : bool
Parameters
$constraint : ConstraintInterface
$operator : int
$version : string
Tags
phpstan-param

Constraint::OP_* $operator

Return values
bool

        
On this page

Search results