From 34c233f48ac5f4c6cce932f2a3c16b69bd478070 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Noco=C5=84?= Date: Fri, 31 Jul 2026 15:39:35 +0200 Subject: [PATCH 1/2] Improved error messages for failed YAML tests --- tests/Yaml/YamlTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Yaml/YamlTest.php b/tests/Yaml/YamlTest.php index 54b781bca88..26d8d0de51e 100644 --- a/tests/Yaml/YamlTest.php +++ b/tests/Yaml/YamlTest.php @@ -41,7 +41,7 @@ public function testYamlIsSyntacticallyValid(string $filePath, int $line, string } self::fail(sprintf( - 'YAML parse error in %s at line %d [hash:%s]: %s', + 'YAML parse error in %s:%d [hash:%s]: %s', $filePath, $line, $bodyHash, From 7763572ea002add0649c45c9ed666bce3dabcdf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Noco=C5=84?= Date: Fri, 31 Jul 2026 16:50:32 +0200 Subject: [PATCH 2/2] Apply suggestion from @mnocon --- tests/Yaml/YamlTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Yaml/YamlTest.php b/tests/Yaml/YamlTest.php index 26d8d0de51e..112ba951fc3 100644 --- a/tests/Yaml/YamlTest.php +++ b/tests/Yaml/YamlTest.php @@ -41,7 +41,7 @@ public function testYamlIsSyntacticallyValid(string $filePath, int $line, string } self::fail(sprintf( - 'YAML parse error in %s:%d [hash:%s]: %s', + 'YAML parse error at %s:%d [hash:%s]: %s', $filePath, $line, $bodyHash,