Remove the \ before the class name.
authorPlatonides <platonides@gmail.com>
Fri, 7 Dec 2012 18:48:57 +0000 (19:48 +0100)
committerPlatonides <platonides@gmail.com>
Mon, 10 Dec 2012 23:08:41 +0000 (00:08 +0100)
Then 'stdclass' is preceded by T_NEW and taken as a class name.
Else it was misinterpreted as a function call.

Change-Id: Ib6afccb26e530a24bf7414ede10f573a9934d2ed

tests/phpunit/includes/libs/GenericArrayObjectTest.php

index 7be4043..40a3965 100644 (file)
@@ -170,7 +170,7 @@ abstract class GenericArrayObjectTest extends MediaWikiTestCase {
 
                $elementClass = $list->getObjectType();
 
-               foreach ( array( 42, 'foo', array(), new \stdClass(), 4.2 ) as $element ) {
+               foreach ( array( 42, 'foo', array(), new stdClass(), 4.2 ) as $element ) {
                        $validValid = $element instanceof $elementClass;
 
                        try{