From 3118c450e4e83e68e603a88595d3bd625f0bbe87 Mon Sep 17 00:00:00 2001 From: Platonides Date: Fri, 7 Dec 2012 19:48:57 +0100 Subject: [PATCH] Remove the \ before the class name. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/includes/libs/GenericArrayObjectTest.php b/tests/phpunit/includes/libs/GenericArrayObjectTest.php index 7be4043230..40a3965fa9 100644 --- a/tests/phpunit/includes/libs/GenericArrayObjectTest.php +++ b/tests/phpunit/includes/libs/GenericArrayObjectTest.php @@ -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{ -- 2.20.1