From 1a5a55ad33495a023d29e42ac49cc93a24f579fc Mon Sep 17 00:00:00 2001 From: Djellze Bllaca Date: Tue, 16 Jul 2024 09:26:19 +0200 Subject: [PATCH] Fix error when a php function name is sent in the payload --- src/Services/ServiceListParameters/ServiceListParameter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Services/ServiceListParameters/ServiceListParameter.php b/src/Services/ServiceListParameters/ServiceListParameter.php index 6aa54635..1a1785f9 100644 --- a/src/Services/ServiceListParameters/ServiceListParameter.php +++ b/src/Services/ServiceListParameters/ServiceListParameter.php @@ -65,7 +65,7 @@ protected function appendParameter(?int $groupKey, ?string $groupType, string $n { if (! is_null($value)) { - if (is_callable($value)) + if (method_exists($this, $value)) { $this->serviceList->appendParameter($value($groupKey, $groupType));