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()
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
You can’t perform that action at this time.
0 commit comments