From 4fdcfb166f0e6526d3d6bc992a24b41fd9109bbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Mirtes?= Date: Thu, 24 Feb 2022 13:21:22 +0100 Subject: [PATCH] Better ignore-by-php-version.neon.php --- phpstan/ignore-by-php-version.neon.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/phpstan/ignore-by-php-version.neon.php b/phpstan/ignore-by-php-version.neon.php index a88d63bce..21212110c 100644 --- a/phpstan/ignore-by-php-version.neon.php +++ b/phpstan/ignore-by-php-version.neon.php @@ -1,14 +1,12 @@ = 80000) { - $config = array_merge_recursive($config, $adapter->load(__DIR__ . '/baseline-8.1.neon')); + $includes[] = __DIR__ . '/baseline-8.1.neon'; } + +$config['includes'] = $includes; $config['parameters']['phpVersion'] = PHP_VERSION_ID; return $config;