From fc4d0e106843453f58213f70ae9789bea5ff84db Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Fri, 8 May 2020 22:20:48 +0200 Subject: [PATCH] Fix signature of HandleErrors middleware In Laravel 5.8, the `Container::tagged()` method was changed to return an iterator [1]. We only use the result for iteration, or, in this case, to pass a bunch of "reporters" to the error handler middleware, therefore we need to accept an iterable here. [1]: https://laravel.com/docs/5.8/upgrade#container-generators --- framework/core/src/Http/Middleware/HandleErrors.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/src/Http/Middleware/HandleErrors.php b/framework/core/src/Http/Middleware/HandleErrors.php index d7965333e..a2d741884 100644 --- a/framework/core/src/Http/Middleware/HandleErrors.php +++ b/framework/core/src/Http/Middleware/HandleErrors.php @@ -41,7 +41,7 @@ class HandleErrors implements Middleware */ protected $reporters; - public function __construct(Registry $registry, HttpFormatter $formatter, array $reporters) + public function __construct(Registry $registry, HttpFormatter $formatter, iterable $reporters) { $this->registry = $registry; $this->formatter = $formatter;