Skip to content

Type error could print false/true type/value instead of bool #8329

Closed
@mvorisek

Description

@mvorisek

Description

https://3v4l.org/av8Mi

since https://wiki.php.net/rfc/null-false-standalone-types PHP already standalone supports false type

starting with (if accepted) #8326 true as a standalone type will be supported as well

This is a feature request to improve the error messages with more specific type to help the developer understand the real given value.

So instead of:

Argument #1 ($obj) must be of type object, bool given,

the following should be printed:

Argument #1 ($obj) must be of type object, false given,

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions