Skip to content

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