From 55892f7592437ac9a21c79afaed96eab8a3dbf6a Mon Sep 17 00:00:00 2001 From: Yanick Witschi Date: Wed, 22 May 2024 10:40:32 +0100 Subject: [PATCH] Fix type hint (#248) --- src/Helper/LabelCallback.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Helper/LabelCallback.php b/src/Helper/LabelCallback.php index 04be405..db6d5c1 100644 --- a/src/Helper/LabelCallback.php +++ b/src/Helper/LabelCallback.php @@ -53,9 +53,11 @@ public static function createAndRegister(string $table, callable $callback): sel } /** + * @param callable|array $callback + * * @return mixed */ - private function executeCallback(callable $callback, array $args) + private function executeCallback($callback, array $args) { // Support Contao's getInstance() method when callback is an array if (\is_array($callback)) {