|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-10-13 14:34 UTC] tony2001@php.net
[2006-10-21 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 12:00:01 2025 UTC |
Description: ------------ Type hinting does not work when forwarding a parameter from one function to another. Reproduce code: --------------- function a(MyClass &$x) { return b($x); } function b(MyClass &$x) { return $x->Name; } Expected result: ---------------- To work. Actual result: -------------- Throws the following error: Fatal error: Argument 1 passed to b() must be an object of class MyClass