From a2e76179e006164d32d71d664c7e72e76d577189 Mon Sep 17 00:00:00 2001 From: Ingolf Steinhardt Date: Fri, 17 Nov 2023 17:00:55 +0100 Subject: [PATCH] Fix issue 617 --- src/Contao/Callback/Callbacks.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Contao/Callback/Callbacks.php b/src/Contao/Callback/Callbacks.php index ec619782..ae2c8ef3 100644 --- a/src/Contao/Callback/Callbacks.php +++ b/src/Contao/Callback/Callbacks.php @@ -3,7 +3,7 @@ /** * This file is part of contao-community-alliance/dc-general. * - * (c) 2013-2019 Contao Community Alliance. + * (c) 2013-2023 Contao Community Alliance. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. @@ -14,7 +14,8 @@ * @author Christian Schiffler * @author Tristan Lins * @author Sven Baumann - * @copyright 2013-2019 Contao Community Alliance. + * @author Ingolf Steinhardt + * @copyright 2013-2023 Contao Community Alliance. * @license https://github.com/contao-community-alliance/dc-general/blob/master/LICENSE LGPL-3.0-or-later * @filesource */ @@ -118,7 +119,7 @@ public static function callArgs($callback, array $args = []) /** * Evaluate the callback and create an object instance if required and possible. * - * @param array|array{0: class-string, 1: string}|callable $callback The callback to invoke. + * @param array|array{0: class-string|string, 1: string}|callable $callback The callback to invoke. * * @return array|callable * @@ -126,7 +127,7 @@ public static function callArgs($callback, array $args = []) */ protected static function evaluateCallback($callback) { - if (is_array($callback) && (2 === count($callback)) && class_exists($callback[0]) && is_string($callback[1])) { + if (is_array($callback) && (2 === count($callback)) && is_string($callback[0]) && is_string($callback[1])) { $serviceCallback = static::evaluateServiceCallback($callback); if ($serviceCallback[0] !== $callback[0]) { return $serviceCallback;