-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Fix compatibility with Lumen #1043
Conversation
the static analysis stuff can be ignored, will be fixed in another PR |
=> #1044 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. IMHO a small helper function isLaravel(): bool might be a nice improvement which would provide the context the comment is now doing.
Thanks, added! |
Tested this, and it seems to work. 😄 |
Fixes barryvdh#1042 Got broken by barryvdh#1026 TL;DR: can't use anything in the `Illuminate\Foundation` namespace without safety check, as it doesn't exist in Lumen.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pataar thanks for confirming
ping @barryvdh IMHO this is good to merge (at least, it's the best idea I could come up with, maybe you have a better one 😬) |
Hah sorry, to be honest I feel like the helper is a bit overkill in this case. |
Yeah about that 😅
It's kind of a catch-22 |
Summary
Fixes #1042
Got broken by #1026
TL;DR: can't use anything in the
Illuminate\Foundation
namespacewithout safety check, as it doesn't exist in Lumen.
Type of change
Checklist
composer fix-style