Closed ersoma closed 2 years ago
@seehat Could you please merge and tag this?
Yes, I will merge this today. I was busy the last days. Sry.
@seehat Np! Thanks! We would really like to use PHP8.1 with this awesome package :-)
Does ist work now @ersoma and @ceesvanegmond?
@seehat Works! Thanks!
@seehat Works here as well, thanks!
Since PHP 8.1 passing null to non-nullable internal function parameters is deprecated (https://php.watch/versions/8.1/internal-func-non-nullable-null-deprecation). PHP 8.1 is already stable and Kirby supports it, so when I tried to update I came across the exception thrown from this plugin.
In the Template.php file's constructor, the dirname function's parameter comes from the file() function which can return null. An added null-check can prevent this.