Skip to content

Commit

Permalink
Update facade PHPDoc for PHPStan
Browse files Browse the repository at this point in the history
When using the Facade and PHPStan :
```
❯ make phpstan
vendor/bin/sail bin phpstan analyse
Note: Using configuration file /var/www/html/phpstan.neon.
 990/990 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

 ------ ------------------------------------------------------------------------------------
  Line   app/xxx.php
 ------ ------------------------------------------------------------------------------------
  28     Call to an undefined static method hisorange\BrowserDetect\Facade::browserName().
  28     Call to an undefined static method hisorange\BrowserDetect\Facade::platformName().
```
  • Loading branch information
potsky authored and hisorange committed Sep 28, 2022
1 parent 701b1f1 commit 2a54d20
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/Facade.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,19 @@
* @method static bool isLinux()
* @method static bool isInApp()
* @method static bool isBot()
* @method static string mobileGrade()
* @method static string deviceModel()
* @method static bool isIEVersion()
* @method static string browserEngine()
* @method static string browserName()
* @method static string browserVersion()
* @method static string deviceFamily()
* @method static string deviceModel()
* @method static string deviceType()
* @method static string mobileGrade()
* @method static string platformName()
* @method static string platformVersion()
* @method static string userAgent()
* @method static string|null platformFamily()
* @method static string|null browserFamily()
* @method static string browserEngine()
* @method static int browserVersionMajor()
* @method static int browserVersionMinor()
* @method static int browserVersionPatch()
Expand Down

0 comments on commit 2a54d20

Please sign in to comment.