summaryrefslogtreecommitdiffstats
path: root/vendor/ipl/web/phpstan-baseline-by-php-version.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 11:30:21 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 11:30:21 +0000
commit8442dc94b1e5f57cd1558dbc9a27ad82066a8cfc (patch)
tree33b468a7f90c26b19c889cf755ee60d23a585627 /vendor/ipl/web/phpstan-baseline-by-php-version.php
parentAdding upstream version 0.13.1. (diff)
downloadicinga-php-library-8442dc94b1e5f57cd1558dbc9a27ad82066a8cfc.tar.xz
icinga-php-library-8442dc94b1e5f57cd1558dbc9a27ad82066a8cfc.zip
Adding upstream version 0.13.2.upstream/0.13.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/ipl/web/phpstan-baseline-by-php-version.php')
-rw-r--r--vendor/ipl/web/phpstan-baseline-by-php-version.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/vendor/ipl/web/phpstan-baseline-by-php-version.php b/vendor/ipl/web/phpstan-baseline-by-php-version.php
new file mode 100644
index 0000000..05107df
--- /dev/null
+++ b/vendor/ipl/web/phpstan-baseline-by-php-version.php
@@ -0,0 +1,12 @@
+<?php
+
+$includes = [];
+if (PHP_VERSION_ID < 80000) {
+ $includes[] = __DIR__ . '/phpstan-baseline-7x.neon';
+} else {
+ $includes[] = __DIR__ . '/phpstan-baseline-8x.neon';
+}
+
+return [
+ 'includes' => $includes
+];