mirror of
https://github.com/flarum/framework.git
synced 2025-02-12 20:34:20 +08:00
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
This commit is contained in:
parent
417c6210ce
commit
fc4d0e1068
|
@ -41,7 +41,7 @@ class HandleErrors implements Middleware
|
||||||
*/
|
*/
|
||||||
protected $reporters;
|
protected $reporters;
|
||||||
|
|
||||||
public function __construct(Registry $registry, HttpFormatter $formatter, array $reporters)
|
public function __construct(Registry $registry, HttpFormatter $formatter, iterable $reporters)
|
||||||
{
|
{
|
||||||
$this->registry = $registry;
|
$this->registry = $registry;
|
||||||
$this->formatter = $formatter;
|
$this->formatter = $formatter;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user