Skip to content

Commit f1aa5bf

Browse files
authored
fix: Refactor exception message to display function name properly (#948)
1 parent b2a1b94 commit f1aa5bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

exercises/practice/darts/Darts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@
2626

2727
function score(float $xAxis, float $yAxis): int
2828
{
29-
throw new \BadFunctionCallException("Please implement the __FUNCTION__ function!");
29+
throw new \BadMethodCallException(sprintf('Implement the %s method', __FUNCTION__));
3030
}

0 commit comments

Comments
 (0)