Skip to content

registerPlugin should fix Exception #1106

Open
@starline

Description

@starline

in vendor/smarty/smarty/src/Smarty.php class_exists (line 752)

* @api Smarty::registerPlugin() */ public function registerPlugin($type, $name, $callback, $cacheable = true) { if (isset($this->registered_plugins[$type][$name])) { throw new Exception("Plugin tag '{$name}' already registered"); } elseif (!is_callable($callback) && !class_exists($callback)) { throw new Exception("Plugin '{$name}' not callable"); } else { $this->registered_plugins[$type][$name] = [$callback, (bool)$cacheable]; } return $this;

HTTP 500 Internal Server Error:
class_exists(): Argument #1 ($class) must be of type string, array given

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions