|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2020-10-13 16:21 UTC] cmb@php.net
[2020-10-14 11:13 UTC] ondrej at mirtes dot cz
[2020-10-15 10:27 UTC] nikic@php.net
[2020-10-17 09:33 UTC] kocsismate@php.net
[2020-10-17 09:41 UTC] kocsismate@php.net
[2020-10-17 10:01 UTC] kocsismate@php.net
[2020-10-17 10:01 UTC] kocsismate@php.net
-Status: Open
+Status: Closed
[2020-10-17 10:02 UTC] kocsismate@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 11:00:01 2025 UTC |
Description: ------------ The function assert_options accepts integers and booleans as the second argument. Currently according to the stub's PHPDoc, it only accepts strings, callables and null. The PHPDoc should be corrected. I guess the assert_options function can be called with either "1" or "true" for the same result... Expected result: ---------------- /** @param string|callable|int|bool|null $value */ function assert_options(int $option, $value = UNKNOWN) : array|object|int|string|null { } Actual result: -------------- /** @param string|callable|null $value */ function assert_options(int $option, $value = UNKNOWN) : array|object|int|string|null { }