We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
??
1 parent f9ec973 commit 34c9e2cCopy full SHA for 34c9e2c
src/PhoneDetector.php
@@ -2,7 +2,7 @@
2
/**
3
* @author Pierre-Henry Soria <hi@ph7.me>
4
* @link https://pierrehenry.be
5
- * @copyright (c) 2019, Pierre-Henry Soria. All Rights Reserved.
+ * @copyright (c) 2019-2022, Pierre-Henry Soria. All Rights Reserved.
6
* @license MIT License
7
*/
8
@@ -40,6 +40,6 @@ private function testUserAgentWith(string $regex): bool
40
41
private function getUserAgent(): string
42
{
43
- return (string)$_SERVER['HTTP_USER_AGENT'];
+ return $_SERVER['HTTP_USER_AGENT'] ?? '';
44
}
45
0 commit comments