|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-09-30 00:37 UTC] yohgaki@php.net
-Status: Open
+Status: Not a bug
[2016-09-30 00:37 UTC] yohgaki@php.net
[2016-10-01 06:46 UTC] a at b dot c dot de
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 18 18:00:01 2025 UTC |
Description: ------------ myFunction() returns an array. myFunction($i)->Data(); Returns the error: Fatal error: Uncaught Error: Call to a member function Data() on array Test script: --------------- function myFunction(){ return Array(new A,new A); } class A { public $foo = 1; function Data(){ return 5; } } five = myFunction(1)->Data() Expected result: ---------------- It should Return that myFunction takes no parameters.