Skip to content

Commit 115ca28

Browse files
committed
Fix build
1 parent 413f345 commit 115ca28

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/php.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ jobs:
4444
strategy:
4545
fail-fast: false
4646
matrix:
47-
operating-system: [ubuntu-latest]
47+
# Ubuntu 24 (current latest) has a broken PCRE library that causes the StringValueTest to fail
48+
operating-system: [ubuntu-26.04, ubuntu-latest]
4849
php-versions: ['8.5']
4950

5051
steps:

tests/XMLSchema/Type/Helper/XPathValueTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace SimpleSAML\Test\XMLSchema\Type\Builtin;
66

7+
use Error;
78
use PHPUnit\Framework\Attributes\CoversClass;
89
use PHPUnit\Framework\Attributes\DataProvider;
910
use PHPUnit\Framework\TestCase;
@@ -28,7 +29,7 @@ public function testString(bool $shouldPass, string $xpath): void
2829
try {
2930
$value = XPathValue::fromString($xpath);
3031
$this->assertTrue($shouldPass);
31-
} catch (AssertionFailedException $e) {
32+
} catch (Error|AssertionFailedException) {
3233
$this->assertFalse($shouldPass);
3334
}
3435
}

0 commit comments

Comments
 (0)