Class PHPStan\Php\PhpVersion

final

Represents a specific PHP version for version-dependent analysis behavior. The version is stored as PHP_VERSION_ID format (e.g. 80100 for PHP 8.1.0). Extension developers can access it by injecting PhpVersion via constructor injection.

Methods