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

$os property non-nullable #682

Open
ambitionphp opened this issue Jun 9, 2023 · 0 comments
Open

$os property non-nullable #682

ambitionphp opened this issue Jun 9, 2023 · 0 comments

Comments

@ambitionphp
Copy link

My project started receiving an uptick in Bugsnag errors: Undefined property: WhichBrowser\Model\Os::$version

My solution was to change $result->os->version?->value to $result->os?->version?->value, however, that caused static analysis errors due to $os being non-nullable.

I was forced to temporarily create a stub file which marks the $os property as being nullable to resolve the issue.

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

No branches or pull requests

1 participant