|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-03-19 01:02 UTC] felipe@php.net
-Status: Open
+Status: Bogus
[2010-03-19 01:02 UTC] felipe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 30 11:00:01 2025 UTC |
Description: ------------ Specifying object as the type hint seems to be broken when using namespaces. Test script: --------------- namespace A; class X {} function foo(object $bar) {} foo(new X); foo(new \stdClass); Expected result: ---------------- foo(new X); // works foo(new \stdClass); // works Actual result: -------------- foo(new X); // fails foo(new \stdClass); // fails