Documentation

ComparisonRequirement extends Requirement
in package

FinalYes
Tags
psalm-immutable
no-named-arguments

Parameter names are not covered by the backward compatibility promise for PHPUnit

Table of Contents

Constants

VERSION_COMPARISON  = '/(?P<operator>[<>=!]{0,2})\s*(?P<version>[\d\.-]+(dev|(RC|alpha|beta)[\d\.])?)[ \t]*\r?$/m'

Properties

$operator  : VersionComparisonOperator
$version  : string

Methods

__construct()  : mixed
asString()  : string
from()  : self
isSatisfiedBy()  : bool

Constants

VERSION_COMPARISON

private mixed VERSION_COMPARISON = '/(?P<operator>[<>=!]{0,2})\s*(?P<version>[\d\.-]+(dev|(RC|alpha|beta)[\d\.])?)[ \t]*\r?$/m'

Properties

Methods

isSatisfiedBy()

public isSatisfiedBy(string $version) : bool
Parameters
$version : string
Return values
bool

        
On this page

Search results