Skip to content

Commit

Permalink
Fix PHPDoc for methods that may return string|bool
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr Hejna authored Jul 12, 2019
1 parent d65a141 commit 780d6c9
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 @@ -197,7 +197,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 @@ -219,7 +219,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 @@ -229,7 +229,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 @@ -239,7 +239,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 780d6c9

Please sign in to comment.