visitor icon indicating copy to clipboard operation
visitor copied to clipboard

Fix: error when user agent is null

Open mmehdizadeh opened this issue 1 year ago • 0 comments

Fix error in two driver when user agent is null

UAParser\Parser::parse(): Argument #1 ($userAgent) must be of type string, null given, called in .../vendor/shetabit/visitor/src/Drivers/UAParser.php on line 80

Detection\MobileDetect::setUserAgent(): Argument #1 ($userAgent) must be of type string, null given, called in .../vendor/shetabit/visitor/src/Drivers/JenssegersAgent.php on line 71

mmehdizadeh avatar Oct 24 '24 06:10 mmehdizadeh