Skip to content

Commit

Permalink
(feat): inform phpstan about methods on facade
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonvanWijhe committed Jul 12, 2024
1 parent a2b0e55 commit c72e49d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 0 additions & 3 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,3 @@ parameters:
paths:
- src
tmpDir: build/phpstan
ignoreErrors:
-
message: '#Call to an undefined static method Yard\\SkeletonPackage\\Facades\\Example::getQuote\(\)#'
4 changes: 4 additions & 0 deletions src/Facades/Example.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

use Illuminate\Support\Facades\Facade;

/**
* @method static string getQuote()
* @method static string getPostContent()
*/
class Example extends Facade
{
/**
Expand Down

0 comments on commit c72e49d

Please sign in to comment.