|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-12-28 17:21 UTC] levim@php.net
[2014-12-28 17:29 UTC] chx@php.net
[2014-12-28 18:10 UTC] ajf@php.net
[2015-06-28 21:03 UTC] stas@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: stas
[2015-06-28 21:03 UTC] stas@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 08 01:00:02 2025 UTC |
Description: ------------ The language spec states this in spec/13-functions.md: *parameter-declaration* must not contain `&` if *type-hint* is `array` or `callable`. Yet PHP allows this: $ php -r 'function a(array &$foo) {} $a = []; a($a);' $ php -r 'function a(callable &$foo) {} $a = "strlen"; a($a);' $ Why, then, is it prohibited in the spec?