Files
librenms-librenms/tests/phpstan/ignore-by-php-version.neon.php

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
529 B
PHP
Raw Permalink Normal View History

<?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'));
}
if (PHP_VERSION_ID < 80100) {
2022-10-24 18:56:35 +02:00
//$config = array_merge_recursive($config, $adapter->load(__DIR__ . '/phpstan-php80.neon'));
}
// If we loaded any extra config
if (count($config) > 0) {
$config['parameters']['reportUnmatchedIgnoredErrors'] = false;
}
return $config;