From a791d5878bfbd360632b9d8f13434d788e4a9a54 Mon Sep 17 00:00:00 2001 From: Johann Pardanaud Date: Thu, 3 Jan 2019 17:53:00 +0100 Subject: [PATCH] Fix type mismatch on $userAgent parameters --- src/Agent.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Agent.php b/src/Agent.php index b1af275..ede4bcd 100644 --- a/src/Agent.php +++ b/src/Agent.php @@ -170,7 +170,7 @@ public function languages($acceptLanguage = null) * Match a detection rule and return the matched key. * * @param array $rules - * @param null $userAgent + * @param string|null $userAgent * @return string */ protected function findDetectionRulesAgainstUA(array $rules, $userAgent = null) @@ -193,7 +193,7 @@ protected function findDetectionRulesAgainstUA(array $rules, $userAgent = null) /** * Get the browser name. * - * @param null $userAgent + * @param string|null $userAgent * @return string */ public function browser($userAgent = null) @@ -212,7 +212,7 @@ public function browser($userAgent = null) /** * Get the platform name. * - * @param string $userAgent + * @param string|null $userAgent * @return string */ public function platform($userAgent = null) @@ -229,7 +229,7 @@ public function platform($userAgent = null) /** * Get the device name. * - * @param string $userAgent + * @param string|null $userAgent * @return string */ public function device($userAgent = null) @@ -248,7 +248,7 @@ public function device($userAgent = null) /** * Check if the device is a desktop computer. * - * @param string $userAgent deprecated + * @param string|null $userAgent deprecated * @param array $httpHeaders deprecated * @return bool */ @@ -260,7 +260,7 @@ public function isDesktop($userAgent = null, $httpHeaders = null) /** * Check if the device is a mobile phone. * - * @param string $userAgent deprecated + * @param string|null $userAgent deprecated * @param array $httpHeaders deprecated * @return bool */ @@ -272,7 +272,7 @@ public function isPhone($userAgent = null, $httpHeaders = null) /** * Get the robot name. * - * @param string $userAgent + * @param string|null $userAgent * @return string|bool */ public function robot($userAgent = null) @@ -287,7 +287,7 @@ public function robot($userAgent = null) /** * Check if device is a robot. * - * @param string $userAgent + * @param string|null $userAgent * @return bool */ public function isRobot($userAgent = null)