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

[11.x] Fix context helper always requiring $key value #51080

Merged
merged 1 commit into from
Apr 16, 2024

Conversation

nikspyratos
Copy link
Contributor

The context() helper added in #50878 accepts null as a value for $key to simply return the Context repository, but without also defaulting $key to null it means you'd have to always do context(null)->add('name', 'test') to use that form of syntax instead of context(['name' => 'test']). This PR addresses that.

@taylorotwell taylorotwell merged commit 6a8b505 into laravel:11.x Apr 16, 2024
30 checks passed
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