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

[9.x] Correct giveConfig param doc #41314

Merged
merged 1 commit into from
Mar 3, 2022

Conversation

Neol3108
Copy link
Contributor

@Neol3108 Neol3108 commented Mar 3, 2022

This PR corrects the phpdoc for the giveConfig method on \Illuminate\Contracts\Container\ContextualBindingBuilder and \Illuminate\Container\ContextualBindingBuilder. I believe it wasn't intentional to restrict the default param to string or null in the original PR(s): #36241 and #39819

As you can see the get method on the config repository accepts mixed:

* @param mixed $default

So I believe this should also be reflected on the giveConfig method.

@taylorotwell taylorotwell merged commit 4e7da89 into laravel:9.x Mar 3, 2022
@Neol3108 Neol3108 deleted the give-config-doc branch March 4, 2022 07:48
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

Successfully merging this pull request may close these issues.

2 participants