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

Fixes Uncaught TypeError on getDevice due to default being empty #66

Merged
merged 3 commits into from
Nov 21, 2023

Conversation

AltamashShaikh
Copy link
Contributor

Description:

Fixes Uncaught TypeError on getDevice due to default being empty
Fixes: matomo-org/matomo#21572

Review

@snake14
Copy link
Contributor

snake14 commented Nov 20, 2023

@AltamashShaikh It looks like the test case that I added needs to be updated corresponding to your change.

@AltamashShaikh
Copy link
Contributor Author

@AltamashShaikh It looks like the test case that I added needs to be updated corresponding to your change.

@snake14 Yes, updated and added 1 more new case

Copy link
Contributor

@snake14 snake14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks alright to me. I don't see any errors when I view Device Detection in my local instance.

CachedEntry.php Outdated Show resolved Hide resolved
Copy link
Member

@tsteur tsteur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, and thanks for adding the test 👍 💯

@AltamashShaikh AltamashShaikh merged commit 339d65f into 5.x-dev Nov 21, 2023
4 checks passed
@AltamashShaikh AltamashShaikh deleted the fix-warnings-m5 branch November 21, 2023 00:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants