-
Notifications
You must be signed in to change notification settings - Fork 812
Closed
Labels
bugDocumentation contains incorrect informationDocumentation contains incorrect information
Description
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.
- docs: https://www.php.net/manual/en/function.array-walk.php
- code stub: https://github.com/php/php-src/blame/php-8.3.10/ext/standard/basic_functions.stub.php#L1621
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 informationDocumentation contains incorrect information