[php-src] Issue #13865: Improve deprecation message for implicit nullable parameters
| From: | nicolas-grekas | Date: | Tue, 02 Apr 2024 06:52:02 +0000 |
| Subject: | [php-src] Issue #13865: Improve deprecation message for implicit nullable parameters | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-246694@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/13865
Author: nicolas-grekas
### Description
Related to https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
Right now, the deprecation message looks like:
> Implicitly marking parameter $arr_opts as nullable is deprecated, the explicit nullable type
> must be used instead
It'd be great to make this message more actionable by telling which method/function is
affected.
E.g.
> Implicitly marking parameter $arr_opts of **the_function()** as nullable is deprecated, the
> explicit nullable type must be used instead
### PHP Version
PHP 8.4
### Operating System
_No response_