Improve getCallableName() helper function

This commit is contained in:
Benjamin Renard 2021-10-08 12:31:12 +02:00
parent d89d75f72b
commit 5f06ec8d28

View file

@ -631,7 +631,7 @@ function withoutAccents($string){
**/ **/
function getCallableName($callable) { function getCallableName($callable) {
if (is_string($callable)) { if (is_string($callable)) {
return $callable; return $callable.'()';
} }
elseif(is_array($callable) && count($callable)==2) { elseif(is_array($callable) && count($callable)==2) {
if (is_string($callable[0])) { if (is_string($callable[0])) {