From 5e8f88bec1a5c6e618b8fca1149fe128f7c74975 Mon Sep 17 00:00:00 2001 From: Niklas Keller Date: Thu, 21 Mar 2024 19:35:37 +0100 Subject: [PATCH] Fix PsalmTest and skip it on newer versions There are parse errors, likely caused by the old version of psalm. --- test/PsalmTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/PsalmTest.php b/test/PsalmTest.php index 6eaa0338..ee97b44c 100644 --- a/test/PsalmTest.php +++ b/test/PsalmTest.php @@ -11,12 +11,12 @@ class PsalmTest extends TestCase */ public function test() { - if (\DIRECTORY_SEPARATOR === '\\') { + if (\DIRECTORY_SEPARATOR === '\\' || \PHP_VERSION_ID >= 80100) { self::markTestSkipped('Skipped on Windows'); } $issues = \json_decode( - \shell_exec('./vendor/bin/psalm.phar --output-format=json --no-progress --config=psalm.examples.xml'), + \shell_exec('./vendor/bin/psalm --output-format=json --no-progress --config=psalm.examples.xml'), true );