From f433d7e313ae56917dfd8bcfb0db038bc3bb7412 Mon Sep 17 00:00:00 2001 From: Jesse Rushlow Date: Fri, 26 Jan 2024 16:46:19 -0500 Subject: [PATCH] better deprecation message --- src/Test/MakerTestDetails.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/Test/MakerTestDetails.php b/src/Test/MakerTestDetails.php index fbaee59d2a..aaa2b52875 100644 --- a/src/Test/MakerTestDetails.php +++ b/src/Test/MakerTestDetails.php @@ -189,7 +189,11 @@ public function getPreRunCallbacks(): array public function skipOnSymfony7(): self { - trigger_deprecation('symfony/maker-bundle', 'v1.53.0', 'This method will be removed in a future version, use MakerTestDetails::skipTest() instead.'); + @trigger_deprecation( + 'symfony/maker-bundle', + 'v1.53.0', + sprintf('%s() will be removed in a future version, use MakerTestDetails::skipTest() instead.', __METHOD__) + ); $this->skipOnSymfony7 = true; @@ -198,8 +202,11 @@ public function skipOnSymfony7(): self public function getSkipOnSymfony7(): bool { - trigger_deprecation('symfony/maker-bundle', 'v1.53.0', 'This method will be removed in a future version, use MakerTestDetails::isTestSkipped() instead.'); - + @trigger_deprecation( + 'symfony/maker-bundle', + 'v1.53.0', + sprintf('%s() will be removed in a future version, use MakerTestDetails::isTestSkipped() instead.', __METHOD__) + ); return $this->skipOnSymfony7; }