thephpleague / plates

Native PHP template system
https://platesphp.com
MIT License
1.47k stars 180 forks source link

Escape can take a null parameter php8.1 #297

Closed visavi closed 1 year ago

visavi commented 2 years ago

PHP 8.1 htmlspecialchars no longer accepts a null parameter php8.1 Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated This fix allows you not to worry about the types of variables being passed The behavior is now the same as in php8.0

ragboyjr commented 1 year ago

good deal! thanks for the mr.