Documentation

ConstraintRequirement 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

$constraint  : VersionConstraint

Methods

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

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

asString()

public asString() : string
Tags
psalm-suppress

ImpureMethodCall

Return values
string

isSatisfiedBy()

public isSatisfiedBy(string $version) : bool
Parameters
$version : string
Tags
psalm-suppress

ImpureMethodCall

Return values
bool

sanitize()

private sanitize(string $version) : string
Parameters
$version : string
Return values
string

        
On this page

Search results