8000 Merge branch '4.2' · symfony/framework-bundle@ef6f382 · GitHub
[go: up one dir, main page]

Skip to content

Commit ef6f382

Browse files
author
Robin Chalas
committed
Merge branch '4.2'
* 4.2: properly fix tests on PHP 5 fix tests on PHP 5 remove doubled dot from exception message bug #29697 [DI] Fixed wrong factory method in exception (Wojciech Gorczyca) [Intl] make type-hinted arguments nullable [DI] Fixed wrong factory method in exception Changed gender choice types to color Fix unnecessary use remove no longer needed PHP version checks remove no longer needed PHP version checks Fixed groupBy argument value in DefaultChoiceListFactoryTest [HttpKernel] Correctly Render Signed URIs Containing Fragments [HttpFoundation] Fix request uri when it starts with double slashes
2 parents e6f9f58 + 6cba25e commit ef6f382

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Tests/Console/Descriptor/ObjectsProvider.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -163,21 +163,16 @@ public static function getEventDispatchers()
163163

164164
public static function getCallables()
165165
{
166-
$callables = array(
166+
return array(
167167
'callable_1' => 'array_key_exists',
168168
'callable_2' => array('Symfony\\Bundle\\FrameworkBundle\\Tests\\Console\\Descriptor\\CallableClass', 'staticMethod'),
169169
'callable_3' => array(new CallableClass(), 'method'),
170170
'callable_4' => 'Symfony\\Bundle\\FrameworkBundle\\Tests\\Console\\Descriptor\\CallableClass::staticMethod',
171171
'callable_5' => array('Symfony\\Bundle\\FrameworkBundle\\Tests\\Console\\Descriptor\\ExtendedCallableClass', 'parent::staticMethod'),
172172
'callable_6' => function () { return 'Closure'; },
173173
'callable_7' => new CallableClass(),
174+
'callable_from_callable' => \Closure::fromCallable(new CallableClass()),
174175
);
175-
176-
if (\PHP_VERSION_ID >= 70100) {
177-
$callables['callable_from_callable'] = \Closure::fromCallable(new CallableClass());
178-
}
179-
180-
return $callables;
181176
}
182177
}
183178

0 commit comments

Comments
 (0)
0