8000 [9.x] Support the latest psr/container versions by GrahamCampbell · Pull Request #38692 · laravel/framework · GitHub
[go: up one dir, main page]

Skip to content

[9.x] Support the latest psr/container versions #38692

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

Merged
merged 2 commits into from
Sep 6, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Added types
  • Loading branch information
GrahamCampbell committed Sep 6, 2021
commit ac2ec96915d10f8d91717c83298663fada83bbf3
4 changes: 2 additions & 2 deletions src/Illuminate/Container/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public function bound($abstract)
/**
* {@inheritdoc}
*/
public function has($id): bool
public function has(string $id): bool
{
return $this->bound($id);
}
Expand Down Expand Up @@ -695,7 +695,7 @@ public function make($abstract, array $parameters = [])
/**
* {@inheritdoc}
*/
public function get($id)
public function get(string $id)
{
try {
return $this->resolve($id);
Expand Down
0