Skip to content

mismatch between array_walk(_recursive) return type in stub and documentation #3634

@mind-bending-forks

Description

@mind-bending-forks

Following pull request php/php-src#8759, array_walk and array_walk_recursive were updated to return true, not bool. While other functions appear to have had their documentation updated to reflect this (e.g. asort), the documentation for array_walk and array_walk_recursive have confused documentation:

The documentation for array_walk has a function signature that claims it returns bool, whereas the return type is reported as being true only, and there is no reference to the change in the change log. Meanwhile, the code stub says it returns true only.

The documentation for array_walk_recursive has a function signature that claims it returns bool, claims that the return type is true or false, yet has a stub that claims it only returns true:

Metadata

Metadata

Assignees

Labels

bugDocumentation contains incorrect information

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions