|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-06-23 19:09 UTC] rasmus@php.net
-Status: Open
+Status: Not a bug
[2015-06-23 19:09 UTC] rasmus@php.net
[2015-06-23 19:11 UTC] kalle@php.net
-Status: Not a bug
+Status: Open
-PHP Version: 7.0.0alpha1
+PHP Version: 7.1+
[2015-06-23 19:11 UTC] kalle@php.net
[2015-06-23 19:11 UTC] kalle@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: kalle
[2015-06-23 19:32 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 09:00:01 2025 UTC |
Description: ------------ Specifying specific array type as a return type of a method/function produces a syntax error. Test script: --------------- function foo(): string[] { return ['bar']; } Actual result: -------------- Parse error: syntax error, unexpected '[', expecting ';' or '{' in ...