Skip to content

Commit

Permalink
Merge pull request #148 from petrhejna/patch-1
Browse files Browse the repository at this point in the history
Fix PHPDoc for methods that may return string|bool
  • Loading branch information
jenssegers authored Jun 13, 2020
2 parents b522536 + 780d6c9 commit daa11c4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Agent.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public function languages($acceptLanguage = null)
* Match a detection rule and return the matched key.
* @param array $rules
* @param string|null $userAgent
* @return string
* @return string|bool
*/
protected function findDetectionRulesAgainstUA(array $rules, $userAgent = null)
{
Expand All @@ -221,7 +221,7 @@ protected function findDetectionRulesAgainstUA(array $rules, $userAgent = null)
/**
* Get the browser name.
* @param string|null $userAgent
* @return string
* @return string|bool
*/
public function browser($userAgent = null)
{
Expand All @@ -231,7 +231,7 @@ public function browser($userAgent = null)
/**
* Get the platform name.
* @param string|null $userAgent
* @return string
* @return string|bool
*/
public function platform($userAgent = null)
{
Expand All @@ -241,7 +241,7 @@ public function platform($userAgent = null)
/**
* Get the device name.
* @param string|null $userAgent
* @return string
* @return string|bool
*/
public function device($userAgent = null)
{
Expand Down

0 comments on commit daa11c4

Please sign in to comment.