Open basteyy opened 12 months ago
I have created a PR that will address this issue.
any movement on this?
@delboy1978uk No.
Good day. I would really like to use the library on Php 8.2))
Hi @reinink, do we have any chance to resolve this issue and achieve PHP 8.2 compatibility in the foreseeable future?
Guys, just add public Template $template;
in your extension, it will work in PHP 8.2. Of course it would be better in the plates library itself but you don't need to wait on that!
https://github.com/thephpleague/plates/pull/329 - this should be fixed here.
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.