Skip to content

Commit

Permalink
Ensure userAgent is always of type string
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl committed Jul 19, 2021
1 parent 2ba067e commit 3fcceaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DeviceDetector.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class DeviceDetector
* Holds the useragent that should be parsed
* @var string
*/
protected $userAgent;
protected $userAgent = '';

/**
* Holds the operating system data after parsing the UA
Expand Down

0 comments on commit 3fcceaf

Please sign in to comment.