Christoph Michael Becker
2550f62c6a
Fix #80543 : ArrayObject::asort() and ::ksort() expect an optional int
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352168 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-22 16:28:26 +00:00
Christoph Michael Becker
19af072c3e
Fix #80482 : Undocumented behavior of array_walk with objects
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351878 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-04 17:20:44 +00:00
Christoph Michael Becker
cd943f94a0
Generate array methodsynopses based on stubs
...
Partial merge of <https://github.com/php/doc-en/pull/266 >.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351860 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-04 00:35:15 +00:00
Christoph Michael Becker
e41806c30b
Revert revision(s) 351724 from phpdoc/en/trunk:
...
Document false and null return types
Cf. <https://news-web.php.net/php.doc.cvs/17645 >.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351730 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 18:05:44 +00:00
Christoph Michael Becker
4754397753
Revert revision 351727 from phpdoc/en/trunk:
...
Document false and null return types
Cf. <https://news-web.php.net/php.doc.cvs/17645 >.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351729 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 17:58:32 +00:00
Jakub Vrana
69bd53265b
Document false and null return types
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351727 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 15:12:46 +00:00
Jakub Vrana
c80da7c04a
Document false and null return types
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351724 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 12:54:59 +00:00
Christoph Michael Becker
86e6094e86
Use canonical type names
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351133 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-02 15:39:04 +00:00
Christoph Michael Becker
9e0f03ac35
Proper variadics instead of pseudo variadics
...
We markup variadic parameters with the `rep=repeat` standard DocBook
attribute of `<methodparam>`, and use proper variable names instead of
using the old pseudo variable name `...`.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351129 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-02 11:17:26 +00:00
Christoph Michael Becker
eb0bd932eb
Replace "number" type with built-in types
...
There is really no need for a pseudo type here; we can either use the
`int|float` union, or spell out the abbreviation, instead.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351123 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-02 09:17:09 +00:00
Christoph Michael Becker
282140eb7d
Note that the order of returned keys is deterministic
...
Patch contributed by Larry Garfield <larry@garfieldtech.com>.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350939 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-19 07:35:23 +00:00
Christoph Michael Becker
80872147aa
Get rid of "callback" types
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350788 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-06 09:11:05 +00:00
Christoph Michael Becker
3e15d2894f
Remove more changelog entries, mostly from PHP 5.4 era
...
Patch contributed by Sobak <msobaczewski@gmail.com>.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350656 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 14:15:17 +00:00
Christoph Michael Becker
7f569e1f17
Remove more changelog entries, mostly from PHP 5.3 era
...
Patch contributed by Sobak <msobaczewski@gmail.com>.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350655 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 14:08:59 +00:00
Christoph Michael Becker
9af43469f4
Remove more changelog entries, mostly from PHP 5.2 era
...
Patch contributed by Sobak <msobaczewski@gmail.com>.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350654 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 13:52:31 +00:00
Christoph Michael Becker
53bdffa6b9
Removed some of the PHP5 changelogs
...
Patch contributed by Sobak <msobaczewski@gmail.com>.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350645 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 12:32:19 +00:00
Christoph Michael Becker
fcb6e76fc6
Minor improvements to array_map() docs
...
Patch contributed by Larry Garfield.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350490 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-02 16:31:49 +00:00
Christoph Michael Becker
fea06f18ec
Note that the result array is non-sequential.
...
Patch contributed by Larry Garfield.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350489 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-02 16:28:21 +00:00
Christoph Michael Becker
b899001091
Convert a note into a more robust example showing how type juggling works.
...
Patch contributed by Larry Garfield.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350488 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-02 16:23:44 +00:00
Christoph Michael Becker
fbde32f84b
Fix #79054 : Wrong indistinguishable point about current() function
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350305 c90b9560-bf6c-de11-be94-00142212c4b1
2020-08-13 12:20:56 +00:00
Christoph Michael Becker
3ecec0aefa
list(): add changelog entry for reference assignments
...
... and remove the links in the changelog.
Patch contributed by jrfnl.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350044 c90b9560-bf6c-de11-be94-00142212c4b1
2020-06-18 08:05:54 +00:00
Christoph Michael Becker
92530c1bc7
Fix #78992 : Strange behavior of SORT_REGULAR insufficiently documented
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348593 c90b9560-bf6c-de11-be94-00142212c4b1
2019-12-19 19:09:36 +00:00
Christoph Michael Becker
1397ae6df7
Fix #78848 : Important info about return values is tucked away at the end of fourth example
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348465 c90b9560-bf6c-de11-be94-00142212c4b1
2019-12-08 15:18:49 +00:00
George Peter Banyard
aba9493325
Typos
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347736 c90b9560-bf6c-de11-be94-00142212c4b1
2019-07-13 15:05:31 +00:00
Christoph Michael Becker
d6bb818364
Fix example output
...
Patch provided by anonymous user.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347729 c90b9560-bf6c-de11-be94-00142212c4b1
2019-07-12 12:54:17 +00:00
Christoph Michael Becker
930f983b23
Fix example wrt. recent PHP versions
...
As of PHP 7.3.0, the usage of undefined variables with compact() trigger
a notice, and as their support should be considered legacy behavior.
Therefore we remove the variable from the example.
Patch provided by anonymous user.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347684 c90b9560-bf6c-de11-be94-00142212c4b1
2019-06-30 09:39:45 +00:00
George Peter Banyard
787e0e625e
Change signature to respect new PHP 7.4 changelog. Added that these functions return an empty array if called without any arguments.
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347508 c90b9560-bf6c-de11-be94-00142212c4b1
2019-05-29 11:45:11 +00:00
George Peter Banyard
1415a3b592
Forgot to change parameter numbers during copy/paste.
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347501 c90b9560-bf6c-de11-be94-00142212c4b1
2019-05-28 13:11:17 +00:00
George Peter Banyard
a26b14769f
Added changelog for PHP 7.4
...
c.f. 77cf3d7b11
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347500 c90b9560-bf6c-de11-be94-00142212c4b1
2019-05-28 13:07:19 +00:00
George Peter Banyard
108ea73be5
Adapted documentation of NULL callback per PHPDoc Editor request.
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347465 c90b9560-bf6c-de11-be94-00142212c4b1
2019-05-21 19:56:39 +00:00
George Peter Banyard
13d24878bd
Add a note that NULL can be used as a callback and an additional example showing that array-map returns the original array if only one array is provided with a NULL callback.
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347462 c90b9560-bf6c-de11-be94-00142212c4b1
2019-05-21 16:15:12 +00:00
George Peter Banyard
821b199e5c
Replace type element by corresponding entity.
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347430 c90b9560-bf6c-de11-be94-00142212c4b1
2019-05-16 21:16:35 +00:00
Joe Watkins
7f5c1d1573
Added some &true; entities, unified examples in array_filter so all match the same style guide.
...
--
Provided by anonymous 75058 (michal.brzuchalski@gmail.com )
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347421 c90b9560-bf6c-de11-be94-00142212c4b1
2019-05-15 11:39:08 +00:00
Nikita Popov
b86df9aea4
Remove warning about undefined list() behavior. At least since PHP 7 this is well-defined.
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347399 c90b9560-bf6c-de11-be94-00142212c4b1
2019-05-09 10:45:19 +00:00
Christoph Michael Becker
8272e36f6a
End the notes war
...
Actual polyfill has been provided by divinity76. Thanks!
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347396 c90b9560-bf6c-de11-be94-00142212c4b1
2019-05-08 10:07:23 +00:00
Pieter Hordijk
c9c8222d0e
Adds examples of array_filter behavior with 0 string and integer. Closes #77878
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347206 c90b9560-bf6c-de11-be94-00142212c4b1
2019-04-12 09:14:23 +00:00
George Peter Banyard
9059e4a572
Improve array_slice and array_splice documentation pages.
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347119 c90b9560-bf6c-de11-be94-00142212c4b1
2019-04-01 20:22:42 +00:00
George Peter Banyard
68a9c82e06
Fix Doc Bug #66546
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347118 c90b9560-bf6c-de11-be94-00142212c4b1
2019-04-01 19:16:35 +00:00
George Peter Banyard
6d3254ed43
Fix Doc Bug #70655
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347117 c90b9560-bf6c-de11-be94-00142212c4b1
2019-04-01 19:15:50 +00:00
Christoph Michael Becker
e1dfc3586d
Add a link to is_countable function in "see also" list of count function
...
--
Provided by anonymous 95413 (vincent.dechenaux+docphp@gmail.com )
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346403 c90b9560-bf6c-de11-be94-00142212c4b1
2018-12-20 17:48:39 +00:00
Christoph Michael Becker
05e4c11653
Clarify function signature
...
Only adding a comment to the sources isn't actually useful for readers
of the manual. Instead we split the function signature.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346086 c90b9560-bf6c-de11-be94-00142212c4b1
2018-11-27 11:38:18 +00:00
Christoph Michael Becker
9eea2fa6a6
Clarify array_column()'s $index_key casting behaviour
...
Cf. <https://bugs.php.net/bug.php?id=68553 >.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346011 c90b9560-bf6c-de11-be94-00142212c4b1
2018-11-18 00:46:41 +00:00
Christoph Michael Becker
f354c9be97
Fix #77164 : Array function document error:array_key_first
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345985 c90b9560-bf6c-de11-be94-00142212c4b1
2018-11-15 16:47:19 +00:00
Christoph Michael Becker
d71b60f004
Fix typo
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345965 c90b9560-bf6c-de11-be94-00142212c4b1
2018-11-07 14:17:23 +00:00
Christoph Michael Becker
d8d97da74f
Fix #76971 : Changed array append behaviour of array_unique
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345783 c90b9560-bf6c-de11-be94-00142212c4b1
2018-10-06 11:43:28 +00:00
Christoph Michael Becker
f663fff2d5
Add basic array_key_first() example
...
Based on a patch provided by Nicolas Lefevre.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345623 c90b9560-bf6c-de11-be94-00142212c4b1
2018-09-11 15:58:58 +00:00
Christoph Michael Becker
3372f616cb
Be more precise
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345420 c90b9560-bf6c-de11-be94-00142212c4b1
2018-08-02 22:15:32 +00:00
Christoph Michael Becker
d3ab3ae75d
Fix #76668 : array_walk() never returns FALSE
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345396 c90b9560-bf6c-de11-be94-00142212c4b1
2018-07-26 14:38:26 +00:00
Christoph Michael Becker
b7a1a91f89
array_replace[_recursive] only requires one argument, like array_merge[_recursive]. See https://github.com/php/php-src/pull/3194
...
PS: maybe further tweak the wording...
--
Provided by anonymous 92566 ()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345370 c90b9560-bf6c-de11-be94-00142212c4b1
2018-07-21 11:52:11 +00:00
Christoph Michael Becker
ce45d942db
$search_value of array_keys() has no default value
...
See <https://bugs.php.net/65904 >.
Based on a patch provided by an anonymous user.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345357 c90b9560-bf6c-de11-be94-00142212c4b1
2018-07-19 12:25:55 +00:00