Skip to content

Commit 083d40e

Browse files
committed
remove no longer needed PHP version checks
1 parent 4ec083d commit 083d40e

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
@@ -155,21 +155,16 @@ public static function getEventDispatchers()
155155

156156
public static function getCallables()
157157
{
158-
$callables = array(
158+
return array(
159159
'callable_1' => 'array_key_exists',
160160
'callable_2' => array('Symfony\\Bundle\\FrameworkBundle\\Tests\\Console\\Descriptor\\CallableClass', 'staticMethod'),
161161
'callable_3' => array(new CallableClass(), 'method'),
162162
'callable_4' => 'Symfony\\Bundle\\FrameworkBundle\\Tests\\Console\\Descriptor\\CallableClass::staticMethod',
163163
'callable_5' => array('Symfony\\Bundle\\FrameworkBundle\\Tests\\Console\\Descriptor\\ExtendedCallableClass', 'parent::staticMethod'),
164164
'callable_6' => function () { return 'Closure'; },
165165
'callable_7' => new CallableClass(),
166+
'callable_from_callable' => \Closure::fromCallable(new CallableClass()),
166167
);
167-
168-
if (\PHP_VERSION_ID >= 70100) {
169-
$callables['callable_from_callable'] = \Closure::fromCallable(new CallableClass());
170-
}
171-
172-
return $callables;
173168
}
174169
}
175170

0 commit comments

Comments
 (0)