Skip to content

Commit c9f72cd

Browse files
committed
Create PHPStan baseline for PHP 8+
1 parent 1a1f7a6 commit c9f72cd

File tree

3 files changed

+515
-1
lines changed

3 files changed

+515
-1
lines changed

ignore-by-php-version.neon.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use PHPStan\DependencyInjection\NeonAdapter;
6+
7+
$adapter = new NeonAdapter();
8+
9+
$config = [];
10+
if (PHP_VERSION_ID >= 80000) {
11+
$config = array_merge_recursive($config, $adapter->load(__DIR__ . '/phpstan-baseline-8+.neon'));
12+
} else {
13+
$config = array_merge_recursive($config, $adapter->load(__DIR__ . '/phpstan-baseline.neon'));
14+
}
15+
16+
$config['parameters']['phpVersion'] = PHP_VERSION_ID;
17+
18+
return $config;

0 commit comments

Comments
 (0)