summaryrefslogtreecommitdiffstats
path: root/phpstan-baseline-by-php-version.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 11:45:00 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 11:45:00 +0000
commit7c19368db58f16858fde7f1c5fe50c0d640c0482 (patch)
treeb416482e821607bcef8656c462d39ff995d65db0 /phpstan-baseline-by-php-version.php
parentAdding upstream version 1.1.1. (diff)
downloadicingadb-web-upstream.tar.xz
icingadb-web-upstream.zip
Adding upstream version 1.1.2.upstream/1.1.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--phpstan-baseline-by-php-version.php12
1 files changed, 12 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..4bd791e
--- /dev/null
+++ b/phpstan-baseline-by-php-version.php
@@ -0,0 +1,12 @@
+<?php
+
+$includes = [];
+if (PHP_VERSION_ID >= 80000) {
+ $includes[] = __DIR__ . '/phpstan-baseline-8x.neon';
+} else {
+ $includes[] = __DIR__ . '/phpstan-baseline-7x.neon';
+}
+
+return [
+ 'includes' => $includes
+];