doc-en
doc-en copied to clipboard
[Docs] TypeError changelog is misleading
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.