Skip to content

Commit

Permalink
Fix type hint (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
Toflar authored May 22, 2024
1 parent 183d489 commit 55892f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Helper/LabelCallback.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 55892f7

Please sign in to comment.