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

Skip to content

Conversation

@mpetty
Copy link
Contributor

@mpetty mpetty commented Jan 17, 2019

#138

This fixes an issue with detecting the browser version if the mobile detect library returns an array of parameters instead of a string.

There may be a better way to handle this so that the preg_match in the version method doesnt have duplicated items in it, but this should work to prevent any errors if it gets that far.

@peter279k
Copy link
Contributor

Other assertions are failed.

I think this approach isn't a good way to solve this issue.

Copy link
Contributor

@peter279k peter279k left a comment

Choose a reason for hiding this comment

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

For this PR, it looks good to me.

Just wait for owner @jenssegers reply :).

@peter279k
Copy link
Contributor

peter279k commented Jan 17, 2019

@mpetty, BTW, can you add some related tests that you mention on issue #139 ?

And it can let this change will be passed/verified :).

@mpetty
Copy link
Contributor Author

mpetty commented Jan 17, 2019

@peter279k added a test that will verify each browser works with a fake user agent string.

@jenssegers jenssegers merged commit bcb8953 into jenssegers:master Jan 19, 2019
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