From e0837b4cbcef63c754d89a4806575cada743a38d Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Fri, 1 Aug 2025 21:57:25 +0200 Subject: [PATCH] account for error message changes in PHP 8.5 --- Tests/Command/TranslationLintCommandTest.php | 24 +++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/Tests/Command/TranslationLintCommandTest.php b/Tests/Command/TranslationLintCommandTest.php index 26d46d90..fdfbfc6b 100644 --- a/Tests/Command/TranslationLintCommandTest.php +++ b/Tests/Command/TranslationLintCommandTest.php @@ -108,16 +108,33 @@ public function testLintMalformedIcuTranslations() fr messages No -------- ---------- -------- EOF, $display); - $this->assertStringContainsString(<<assertStringContainsString(\sprintf(<<= 80500 ? 'MessageFormatter::__construct()' : 'msgfmt_create'), $display); + + if (\PHP_VERSION_ID >= 80500) { + $this->assertStringContainsString(<<assertStringContainsString(<<assertStringContainsString(<<