phpstan/php-8-stubs
Stub files for PHP 8 built-in functions, classes, and extensions, maintained for PHPStan. Improves static analysis and type inference by providing accurate signatures and phpDoc where native reflection is incomplete or inconsistent.
PHP stub files automatically extracted from php-src. Used by PHPStan to understand signatures of built-in PHP classes and functions for PHP 8.0+.
#[\Since('x.y')] and #[\Until('x.y')] attributes to track when symbols and signatures were added or removed.Zend/), 69 extensions (ext/), and 6 SAPIs (sapi/).Php8StubsMap) that accepts a $phpVersionId and returns only the symbols available in that PHP version.extractor/extract.php — stubs are never hand-written.phpstan/phpstan-src.$map = new \PHPStan\Php8StubsMap($phpVersionId); // e.g. 80300 for PHP 8.3.0
$map->classes; // array<string, string> — lowercase class name => stub path
$map->functions; // array<string, string> — lowercase function name => stub path
How can I help you explore Laravel packages today?