2022-09-06 23:43:51 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
use PHPStan\DependencyInjection\NeonAdapter;
|
|
|
|
|
|
|
|
|
|
$adapter = new NeonAdapter();
|
|
|
|
|
|
|
|
|
|
$config = [];
|
|
|
|
|
|
|
|
|
|
if (PHP_VERSION_ID < 80000) {
|
2022-10-24 18:56:35 +02:00
|
|
|
//$config = array_merge_recursive($config, $adapter->load(__DIR__ . '/phpstan-php7.neon'));
|
2022-09-06 23:43:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (PHP_VERSION_ID < 80100) {
|
2022-10-24 18:56:35 +02:00
|
|
|
//$config = array_merge_recursive($config, $adapter->load(__DIR__ . '/phpstan-php80.neon'));
|
2022-09-06 23:43:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// If we loaded any extra config
|
2023-05-24 22:21:54 +02:00
|
|
|
if (count($config) > 0) {
|
2022-09-06 23:43:51 +02:00
|
|
|
$config['parameters']['reportUnmatchedIgnoredErrors'] = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return $config;
|