-
Notifications
You must be signed in to change notification settings - Fork 185
Open
Description
Currently, the ExtensionInterface requires only one method (register). In L102 from Func.php , the script tries to assign the Template $template to the extension's variable $template. If strict mode is enabled, you will receive a Deprecated warning:
Deprecated: Creation of dynamic property SomeExtension::$template is deprecated in /var/www/html/vendor/league/plates/src/Template/Func.php on line 104
This can be fixed by adding the following to the extension:
public Template $template;A better fix would be:
- Create an extendable
MasterExtensionclass with the variable defined within it. - Add a
setTemplatemethod to theExtensionInterfaceand allow the user to handle this themselves.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels