|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-11-23 20:11 UTC] bwoebi@php.net
[2014-11-23 20:11 UTC] bwoebi@php.net
-Status: Open
+Status: Closed
[2014-11-23 22:51 UTC] bwoebi@php.net
[2014-11-23 22:51 UTC] stas@php.net
-Status: Closed
+Status: Re-Opened
-Assigned To:
+Assigned To: bwoebi
[2014-11-23 22:51 UTC] stas@php.net
[2014-11-23 22:53 UTC] stas@php.net
-Status: Re-Opened
+Status: Closed
[2014-11-23 22:53 UTC] stas@php.net
[2014-11-23 22:58 UTC] bwoebi@php.net
[2014-11-25 11:28 UTC] bwoebi@php.net
[2014-11-25 12:06 UTC] bwoebi@php.net
[2014-11-26 16:21 UTC] ab@php.net
[2014-11-26 16:21 UTC] ab@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 11:00:02 2025 UTC |
Description: ------------ I made a constant array and tried to use it as the default for an array parameter, but it wouldn't accept it. Test script: --------------- <?php const FOO = []; function foobar(array $foo = FOO) {} Actual result: -------------- Fatal error: Default value for parameters with array type hint can only be an array or NULL in %s on line 5 Process exited with code 255.