From c7ee6a333307b6b9a3627d50b71b6aa71be9ccd6 Mon Sep 17 00:00:00 2001 From: Matteo Galli Date: Wed, 14 Aug 2019 09:34:42 +0200 Subject: [PATCH] Replace callback typehint with callable `callback` is not a valid PHP type and makes static analysis tools failing --- libs/sysplugins/smarty_internal_templatebase.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/sysplugins/smarty_internal_templatebase.php b/libs/sysplugins/smarty_internal_templatebase.php index 4476f120..200c11bb 100644 --- a/libs/sysplugins/smarty_internal_templatebase.php +++ b/libs/sysplugins/smarty_internal_templatebase.php @@ -265,7 +265,7 @@ abstract class Smarty_Internal_TemplateBase extends Smarty_Internal_Data * * @param string $type plugin type * @param string $name name of template tag - * @param callback $callback PHP callback to register + * @param callable $callback PHP callback to register * @param bool $cacheable if true (default) this function is cache able * @param mixed $cache_attr caching attributes if any * @@ -301,7 +301,7 @@ abstract class Smarty_Internal_TemplateBase extends Smarty_Internal_Data * @link http://www.smarty.net/docs/en/api.register.filter.tpl * * @param string $type filter type - * @param callback $callback + * @param callable $callback * @param string|null $name optional filter name * * @return \Smarty|\Smarty_Internal_Template