2022-01-01 13:39:32 +00:00
|
|
|
<?php declare(strict_types = 1);
|
|
|
|
|
|
|
|
// more inspiration at https://github.com/phpstan/phpstan-src/blob/master/build/ignore-by-php-version.neon.php
|
2022-02-24 12:21:22 +00:00
|
|
|
$includes = [];
|
2022-01-01 13:39:32 +00:00
|
|
|
if (PHP_VERSION_ID >= 80000) {
|
2022-02-24 12:21:22 +00:00
|
|
|
$includes[] = __DIR__ . '/baseline-8.1.neon';
|
2022-01-01 13:39:32 +00:00
|
|
|
}
|
2022-02-24 12:21:22 +00:00
|
|
|
|
|
|
|
$config['includes'] = $includes;
|
2022-01-01 13:39:32 +00:00
|
|
|
$config['parameters']['phpVersion'] = PHP_VERSION_ID;
|
|
|
|
|
|
|
|
return $config;
|