summaryrefslogtreecommitdiffstats
path: root/phpstan-baseline-by-php-version.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpstan-baseline-by-php-version.php')
-rw-r--r--phpstan-baseline-by-php-version.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/phpstan-baseline-by-php-version.php b/phpstan-baseline-by-php-version.php
new file mode 100644
index 0000000..2099535
--- /dev/null
+++ b/phpstan-baseline-by-php-version.php
@@ -0,0 +1,10 @@
+<?php
+
+$includes = [];
+if (PHP_VERSION_ID >= 80000) {
+ $includes[] = __DIR__ . '/phpstan-baseline-8x.neon';
+} else {
+ $includes[] = __DIR__ . '/phpstan-baseline-7x.neon';
+}
+
+return ['includes' => $includes];