Skip to content
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

Getting error while running php artisan blog:install Illuminate\Container\Container::bind(): Argument #2 ($concrete) must be of type Closure|string|null #223

Open
prashant-thakur26 opened this issue Apr 19, 2021 · 2 comments

Comments

@prashant-thakur26
Copy link

No description provided.

@prashant-thakur26
Copy link
Author

Illuminate\Container\Container::bind(): Argument #2 ($concrete) must be of type Closure|string|null
at C:\xampp\htdocs\blog-master\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| }

1 C:\xampp\htdocs\blog-master\vendor\laravel\framework\src\Illuminate\Container\Container.php:361
Illuminate\Container\Container::bind("Facade\Ignition\DumpRecorder\MultiDumpHandler", Object(Facade\Ignition\DumpRecorder\MultiDumpHandler))

2 C:\xampp\htdocs\blog-master\vendor\facade\ignition\src\DumpRecorder\DumpRecorder.php:29
Illuminate\Container\Container::singleton("Facade\Ignition\DumpRecorder\MultiDumpHandler", Object(Facade\Ignition\DumpRecorder\MultiDumpHandler))

@shankesgk2
Copy link

运行 composer update
原因好像是是composer.lock文件记录错误.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants