smarty-php / smarty

Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic.
Other
2.22k stars 701 forks source link

PHP 8.3 problem in Template->appendCode() in Smarty 5 #996

Closed LPRKR closed 2 months ago

LPRKR commented 2 months ago

Hi! Getting this error on compilation time in Smarty 5.0.2 after upgrading to PHP 8.3. Not sure if it's my code issue, seems rather like a need for internal fix.

message: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated
line: 691
file: [APP]/vendor/smarty/smarty/src/Compiler/Template.php