|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-09-23 20:30 UTC] helly@php.net
[2014-07-15 22:06 UTC] yohgaki@php.net
-Status: Open
+Status: Closed
-Package: Feature/Change Request
+Package: *General Issues
-Assigned To:
+Assigned To: yohgaki
[2014-07-15 22:06 UTC] yohgaki@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 13:00:02 2025 UTC |
Description: ------------ Hi, if you define a ObjectType in Argument-List of a Method, the Line-Number (in Error-Message) points to the Method and not to the Line the argument is set. This makes debugging very hard ;-) Bye, Matthias Reproduce code: --------------- 01: <?PHP 02: class Test { 03: 04: public static function testmethod (Test $obj) { 05: } 06: } 07: 08: $string = "I'm a string"; 09: Test::testmethod ($string); 10: ?> Expected result: ---------------- Fatal error: Argument 1 must be an object of class Test in test.php on line 9 Actual result: -------------- Fatal error: Argument 1 must be an object of class Test in test.php on line 4