upgrade to laravel 7 and set branch to v2
This commit is contained in:
@@ -31,7 +31,7 @@ class ClosureLoader extends Loader
|
||||
*
|
||||
* @return RouteCollection A RouteCollection instance
|
||||
*/
|
||||
public function load($closure, $type = null)
|
||||
public function load($closure, string $type = null)
|
||||
{
|
||||
return $closure();
|
||||
}
|
||||
@@ -39,7 +39,7 @@ class ClosureLoader extends Loader
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function supports($resource, $type = null)
|
||||
public function supports($resource, string $type = null)
|
||||
{
|
||||
return $resource instanceof \Closure && (!$type || 'closure' === $type);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user