mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
25 lines
530 B
PHP
25 lines
530 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use PHPStan\DependencyInjection\NeonAdapter;
|
|
|
|
$adapter = new NeonAdapter();
|
|
|
|
$config = [];
|
|
|
|
if (PHP_VERSION_ID < 80000) {
|
|
//$config = array_merge_recursive($config, $adapter->load(__DIR__ . '/phpstan-php7.neon'));
|
|
}
|
|
|
|
if (PHP_VERSION_ID < 80100) {
|
|
//$config = array_merge_recursive($config, $adapter->load(__DIR__ . '/phpstan-php80.neon'));
|
|
}
|
|
|
|
// If we loaded any extra config
|
|
if (sizeof($config) > 0) {
|
|
$config['parameters']['reportUnmatchedIgnoredErrors'] = false;
|
|
}
|
|
|
|
return $config;
|