laravel/framework — pull request #6648 by hannesvdvreken (2014-12-12 16:31:27+00:00)
Title: Allow DI in static methods

This allows you to do

```php
class Classname {
public static function staticMethod(Foo $foo, Bar $bar)
{
//
}
}

$container->call('Classname::staticMethod')
```

Which wasn't able before because `new \ReflectionFunction($arg)` doesn't accept this kind of string as the first argument, because it describes a Method and not a Function.

Also not the `callable` Type Hint, which is available since PHP 5.4, and accepts everyting like:

- `'Classname::staticMethod'`,
- `'\Vendor\functionName'`,
- `'global_function_name'`,
- `[$object, 'methodName']`,
- `function () {}`

Basically anything that responds `true` to `is_callable` and is a possible first argument for `call_user_func` and `call_user_func_array`.