From 9ebb077e13b8013ab417a69ed3f8a3087acf0f39 Mon Sep 17 00:00:00 2001 From: Jawira Portugal Date: Sun, 15 Mar 2026 22:17:08 +0100 Subject: [PATCH] fix: Refactor exception message to display function name properly --- exercises/practice/darts/Darts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/practice/darts/Darts.php b/exercises/practice/darts/Darts.php index 4025b628..37d5b5c2 100644 --- a/exercises/practice/darts/Darts.php +++ b/exercises/practice/darts/Darts.php @@ -26,5 +26,5 @@ function score(float $xAxis, float $yAxis): int { - throw new \BadFunctionCallException("Please implement the __FUNCTION__ function!"); + throw new \BadMethodCallException(sprintf('Implement the %s method', __FUNCTION__)); }