You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
publicTemplate$template;
A better fix would be:
Create an extendable MasterExtension class with the variable defined within it.
Add a setTemplate method to the ExtensionInterface and allow the user to handle this themselves.
The text was updated successfully, but these errors were encountered:
Currently, the
ExtensionInterface
requires only one method (register
). In L102 from Func.php , the script tries to assign theTemplate $template
to the extension's variable$template
. If strict mode is enabled, you will receive a Deprecated warning:This can be fixed by adding the following to the extension:
A better fix would be:
MasterExtension
class with the variable defined within it.setTemplate
method to theExtensionInterface
and allow the user to handle this themselves.The text was updated successfully, but these errors were encountered: