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

[5.x] Throw exception if config is incomplete #736

Conversation

mateusjatenee
Copy link
Contributor

(This is a breaking change, but I'd consider this a bug fix)

While watching Prime's stream with Taylor and TJ, their oAuth implementation was failing because the twitch config was incomplete.
Since it was trying to access an array key on a null variable, the warning was not informative at all (Trying to access array offset on value of type null). If you're experienced, you sorta know where to look for things, but if you're new this is very confusing.

Since client_id, client_secret and redirect are always expected, this PR simply throws an exception letting the user know what was missing exactly.

@taylorotwell taylorotwell merged commit f170502 into laravel:5.x Feb 27, 2025
13 of 15 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