We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
PHP7 type error (return value) is thrown when request missing User-Agent header.
User-Agent
Expected to get empty User-Agent, not null or exception
Make http request without User-Agent header and save Auditable model.
Explicity typecast to (string) return value of resolveUserAgent and other functions in Auditable trait.
(string)
resolveUserAgent
Auditable
The text was updated successfully, but these errors were encountered:
Thanks for reporting this @dominikveils, I'll fix it ASAP.
Sorry, something went wrong.
In version 6, the default User Agent resolver won't have this issue.
While version 6 isn't released, I've tagged version 5.0.4, which addresses this problem.
quetzyg
No branches or pull requests
Actual Behaviour
PHP7 type error (return value) is thrown when request missing
User-Agent
header.Expected Behaviour
Expected to get empty
User-Agent
, not null or exceptionSteps to Reproduce
Make http request without User-Agent header and save Auditable model.
Possible Solutions
Explicity typecast to
(string)
return value ofresolveUserAgent
and other functions inAuditable
trait.The text was updated successfully, but these errors were encountered: