File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -155,21 +155,16 @@ public static function getEventDispatchers()
155
155
156
156
public static function getCallables ()
157
157
{
158
- $ callables = array (
158
+ return array (
159
159
'callable_1 ' => 'array_key_exists ' ,
160
160
'callable_2 ' => array ('Symfony \\Bundle \\FrameworkBundle \\Tests \\Console \\Descriptor \\CallableClass ' , 'staticMethod ' ),
161
161
'callable_3 ' => array (new CallableClass (), 'method ' ),
162
162
'callable_4 ' => 'Symfony \\Bundle \\FrameworkBundle \\Tests \\Console \\Descriptor \\CallableClass::staticMethod ' ,
163
163
'callable_5 ' => array ('Symfony \\Bundle \\FrameworkBundle \\Tests \\Console \\Descriptor \\ExtendedCallableClass ' , 'parent::staticMethod ' ),
164
164
'callable_6 ' => function () { return 'Closure ' ; },
165
165
'callable_7 ' => new CallableClass (),
166
+ 'callable_from_callable ' => \Closure::fromCallable (new CallableClass ()),
166
167
);
167
-
168
- if (\PHP_VERSION_ID >= 70100 ) {
169
- $ callables ['callable_from_callable ' ] = \Closure::fromCallable (new CallableClass ());
170
- }
171
-
172
- return $ callables ;
173
168
}
174
169
}
175
170
You can’t perform that action at this time.
0 commit comments