From 2ae50735faeebbaa3fdfe14afa8b13d3222946cb Mon Sep 17 00:00:00 2001 From: Bruce Weirdan Date: Sun, 4 Feb 2024 15:41:01 -0400 Subject: [PATCH] Apply suggestions from code review --- tests/OverrideTest.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/OverrideTest.php b/tests/OverrideTest.php index 17782bc9eca..4656db0aee6 100644 --- a/tests/OverrideTest.php +++ b/tests/OverrideTest.php @@ -83,7 +83,7 @@ class C { public function f(): void {} } ', - 'error_message' => 'InvalidOverride - src' . DIRECTORY_SEPARATOR . 'somefile.php:3:25', + 'error_message' => 'InvalidOverride', 'error_levels' => [], 'php_version' => '8.3', ], @@ -97,7 +97,7 @@ class C2 extends C { public function f(): void {} } ', - 'error_message' => 'MissingOverrideAttribute - src' . DIRECTORY_SEPARATOR . 'somefile.php:7:25', + 'error_message' => 'MissingOverrideAttribute', 'error_levels' => [], 'php_version' => '8.3', ], @@ -113,7 +113,7 @@ class C { public function f(): void {} } ', - 'error_message' => 'MissingOverrideAttribute - src' . DIRECTORY_SEPARATOR . 'somefile.php:9:25', + 'error_message' => 'MissingOverrideAttribute', 'error_levels' => [], 'php_version' => '8.3', ], @@ -131,7 +131,7 @@ class C2 extends C { public function __construct() {} } ', - 'error_message' => 'InvalidOverride - src' . DIRECTORY_SEPARATOR . 'somefile.php:10:25', + 'error_message' => 'InvalidOverride', 'error_levels' => [], 'php_version' => '8.3', ], @@ -145,7 +145,7 @@ interface I2 extends I { public function f(): void; } ', - 'error_message' => 'MissingOverrideAttribute - src' . DIRECTORY_SEPARATOR . 'somefile.php:7:25', + 'error_message' => 'MissingOverrideAttribute', 'error_levels' => [], 'php_version' => '8.3', ], @@ -160,7 +160,7 @@ class C2 extends C { private function f(): void {} } ', - 'error_message' => 'InvalidOverride - src' . DIRECTORY_SEPARATOR . 'somefile.php:7:25', + 'error_message' => 'InvalidOverride', 'error_levels' => [], 'php_version' => '8.3', ], @@ -171,7 +171,7 @@ interface I { public function f(): void; } ', - 'error_message' => 'InvalidOverride - src' . DIRECTORY_SEPARATOR . 'somefile.php:3:25', + 'error_message' => 'InvalidOverride', 'error_levels' => [], 'php_version' => '8.3', ],