Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[5.2] Ensure encrypter exists#14038

Merged
taylorotwell merged 5 commits into
laravel:5.2from
greydnls:encrypter
Jun 18, 2016
Merged

[5.2] Ensure encrypter exists#14038
taylorotwell merged 5 commits into
laravel:5.2from
greydnls:encrypter

Conversation

@greydnls
Copy link
Copy Markdown
Contributor

This PR:

  • declares encrypter as a proper property on the Queue class
  • ensures that encrypter exists, or throws an exception if it doesn't.

Without that guard in place there's the possibility of getting "function encrypt called on null" error.

@GrahamCampbell
Copy link
Copy Markdown
Collaborator

Thanks, but this is actually a missuse of the encrypt exception.

@greydnls
Copy link
Copy Markdown
Contributor Author

@GrahamCampbell I figured that might be the case. What would be a better Exception to use?

@GrahamCampbell
Copy link
Copy Markdown
Collaborator

I'd say just let it fatal error like it is now.

@taylorotwell taylorotwell merged commit 5c4595a into laravel:5.2 Jun 18, 2016
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.

3 participants