thecodingmachine / safe

All PHP functions, rewritten to throw exceptions instead of returning false
MIT License
2.35k stars 140 forks source link

PHP 8.4 - Implicit nullability deprecation #442

Open Ayesh opened 6 months ago

Ayesh commented 6 months ago

PHP 8.4 recently merged changes to emit a deprecation notice on function declared with an implicit nullable type.

All upstream functions in php-src already have the nullable types (?string $var = null and not string $var = null), so we will need to update our generator to account for this.

I submitted PR #441 to preview the expected changes.