-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type Error issue with latest Laravel 7.x #183
Comments
Getting the same issue as described here. Will try to submit a PR later if still unresolved. |
I am also waiting for this fix. |
Considering Laravel just released a security vulnerability fix (https://blog.laravel.com/security-release-laravel-61827-7220), this is blocking projects from integrating this fix. |
The bug is right here: https://github.com/antonioribeiro/health/blob/v0.10.1/src/ServiceProvider.php#L320, this needs to be a closure. |
Laravel 7.22.0 (https://github.com/laravel/framework/releases/tag/v7.22.0) throws `TypeError`s when passed an object instead of a closure or class name. Fixes antonioribeiro#183
Laravel 7.22.0 (https://github.com/laravel/framework/releases/tag/v7.22.0) throws `TypeError`s when passed an object instead of a closure or class name. Fixes antonioribeiro#183
Laravel 7.22.0 (https://github.com/laravel/framework/releases/tag/v7.22.0) throws `TypeError`s when passed an object instead of a closure or class name. Fixes antonioribeiro#183
Laravel 7.22.0 (https://github.com/laravel/framework/releases/tag/v7.22.0) throws `TypeError`s when passed an object instead of a closure or class name. Fixes #183
Due to this PR laravel/framework#33539, the package throws an error
` TypeError
Illuminate\Container\Container::bind(): Argument #2 ($concrete) must be of type Closure|string|null
at vendor/laravel/framework/src/Illuminate/Container/Container.php:238
234| // bound into this container to the abstract type and we will just wrap it
235| // up inside its own Closure to give us more convenience when extending.
236| if (! $concrete instanceof Closure) {
237| if (! is_string($concrete)) {
238| throw new \TypeError(self::class.'::bind(): Argument #2 ($concrete) must be of type Closure|string|null');
239| }
240|
241| $concrete = $this->getClosure($abstract, $concrete);
242| }
+10 vendor frames
11 artisan:37
Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
`
The text was updated successfully, but these errors were encountered: