Skip to content

Improve deprecation message for implicit nullable parameters #13865

Closed
@nicolas-grekas

Description

@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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions