xp-framework / core

The XP Framework is an all-purpose, object oriented PHP framework.
Other
19 stars 6 forks source link

Deprecate implicitly nullable parameter types #336

Closed thekid closed 7 months ago

thekid commented 7 months ago

See https://wiki.php.net/rfc/deprecate-implicitly-nullable-types

⚠️ Note: These can not be fixed syntactically in a way that works with all PHP versions PHP 7.0 - 8.4, see https://github.com/xp-framework/rfc/issues/343#issuecomment-1906775356. We either need to drop support for at least PHP 7.0 or remove the type hint. Both create BC breaks.

👉 Workaround: For XP 11, we'll go with suppressing these errors via error handler.