|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-10-04 18:10 UTC] design at oleku dot org
[2011-10-04 18:21 UTC] mikko dot petteri dot hirvonen at gmail dot com
[2011-11-06 16:23 UTC] php-dev at zerocue dot com
[2015-03-14 15:53 UTC] nikic@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: nikic
[2015-03-14 15:53 UTC] nikic@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 11 01:00:02 2025 UTC |
Description: ------------ It would be nice if object instantiation and calling methods on the object could occur within the same expression. Test script: --------------- class A { public function method() { echo "call\n"; } } new A(/* args, mayhaps */)->method(); new A->method(); Expected result: ---------------- call call Actual result: -------------- Parse error: syntax error, unexpected '->'