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

[6.x] Use value helper where possible #29959

Merged
merged 1 commit into from
Sep 11, 2019

Conversation

netpok
Copy link
Contributor

@netpok netpok commented Sep 11, 2019

The framework already uses the value helper many places, this pull request updates the remaining three occurrences for consistency.

Both the Console and the Container package already depends on the Support package so this does not introduce new dependency.

@taylorotwell taylorotwell merged commit b59fe21 into laravel:6.x Sep 11, 2019
@netpok netpok deleted the feature/use-value-helper branch September 11, 2019 21:24
taylorotwell pushed a commit that referenced this pull request Nov 6, 2019
* Remove Container dependency on Illuminate\Support

For standalone projects, pulling in all of Illuminate\Support is a bit
overkill, given that we're using only a couple of functions from the
package. This commit opts to duplicate the two helper functions inside
the container namespace (so they'll be picked up by a subtree split),
which also removes reliance on any custom global functions.

This goes beyond effectively reverting #29959, as the container used
Arr::wrap() before adding in the value() helper.

* Update Util.php
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