From: Platonides Date: Fri, 7 Dec 2012 18:48:57 +0000 (+0100) Subject: Remove the \ before the class name. X-Git-Tag: 1.31.0-rc.0~21332^2 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=3118c450e4e83e68e603a88595d3bd625f0bbe87;p=lhc%2Fweb%2Fwiklou.git 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 --- 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{