We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
How to catch
use: $this->smarty->registerPlugin(Smarty::PLUGIN_MODIFIER, $name, [$instance, $function_name]); and function doesn't exist
I expect to get an exception. but I've gotten the error
Sorry, something went wrong.
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: