Copied!

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

CloneableInstantiable
Methods
public static clear()
 

Clears the memoization cache once you are done

public static match(Composer\Semver\Constraint\ConstraintInterface $constraint, $operator, $version)
 

Evaluates the expression: $constraint match $operator $version

Properties
private static $compiledCheckerCache
 
private static $enabled
private static $resultCache
 
private static $transOpInt = ['==', '<', '<=', '>', '>=', '!=']
 
  • phpstan-var array<Constraint::OP_, Constraint::STROP>
Properties
private static $compiledCheckerCache
 
private static $enabled
private static $resultCache
 
private static $transOpInt = ['==', '<', '<=', '>', '>=', '!=']
 
  • phpstan-var array<Constraint::OP_, Constraint::STROP>
Methods
public static clear()
 

Clears the memoization cache once you are done

public static match(Composer\Semver\Constraint\ConstraintInterface $constraint, $operator, $version)
 

Evaluates the expression: $constraint match $operator $version

© 2023 Bruce Wells
Search Namespaces \ Classes
Configuration