doc-en icon indicating copy to clipboard operation
doc-en copied to clipboard

[Docs] TypeError changelog is misleading

Open DanielEScherzer opened this issue 10 months ago • 0 comments

Affected page

https://www.php.net/manual/en/class.typeerror.php

Current issue

Current changelog says

A TypeError is no longer thrown when an invalid number of arguments are passed to a built-in PHP function in strict mode. Instead, an ArgumentCountError is raised.

But, since ArgumentCountError extends TypeError, technically, a TypeError is still being thrown

Suggested improvement

A generic TypeError is no longer thrown when an invalid number of arguments are passed to a built-in PHP function in strict mode. Instead, an instance of the more specific ArgumentCountError subclass is raised.

DanielEScherzer avatar Feb 26 '25 09:02 DanielEScherzer