Skip to content

Commit

Permalink
Fix PsalmTest and skip it on newer versions
Browse files Browse the repository at this point in the history
There are parse errors, likely caused by the old version of psalm.
  • Loading branch information
kelunik committed Mar 21, 2024
1 parent cde1f9d commit 5e8f88b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/PsalmTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
);

Expand Down

0 comments on commit 5e8f88b

Please sign in to comment.