Class PHPStan\Php\PhpVersions

final

Range-aware PHP version check that handles version uncertainty. Unlike PhpVersion (which represents a single known version), PhpVersions wraps a Type representing the possible PHP versions. When the exact version is known, queries return Yes/No. When a range of versions is possible, queries return Maybe. This is the return type of Scope::getPhpVersion().

Methods