phug-php / phug

Phug - The Pug Template Engine for PHP
https://phug.selfbuild.fr
MIT License
63 stars 3 forks source link

PHP 8.2 deprecations #94

Closed alessandro-fazzi closed 1 year ago

alessandro-fazzi commented 1 year ago

Hello,

sorry for not using the issue template, but I'm just willing to report some deprecations encountered using PHP 8.2

IDK if it's useful, if not or if 1 issue per deprecation would have been better.

kylekatarnls commented 1 year ago

In the last version the #[\ReturnTypeWillChange] are already there:

For instance Phug\Ast\Node: https://github.com/phug-php/phug/blob/master/src/Phug/Ast/Ast/Node.php#L422

It has been fixed in https://github.com/phug-php/phug/commit/9dcb857bef090f3bc4d60e9fb64dba4b4461cbb2 (released in 2021: https://github.com/phug-php/phug/releases/tag/1.9.0)

Can you check which version you use please?

alessandro-fazzi commented 1 year ago

I'm on pug-php/pug 3.5 as the only explicit requirement. Looking into the .lock I notice that it requires phug ^1.6, but I've got locked the 1.8.1, not the latest. Evidently this is just a project-related human big fail in the upgrade process.

Thanks for pointing that out.

Going to clean up the issue description removing the non relevant deprecations