Skip to content

Commit

Permalink
excludePaths integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Jan 6, 2021
1 parent 91a917e commit 610e294
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,9 @@ jobs:
composer install
cp ../../phpstan vendor/bin/phpstan
vendor/bin/phpstan analyse -l 8 src/
- |
cd e2e/excludePaths
../../phpstan analyse
include:
- php-version: 8.0
operating-system: ubuntu-latest
Expand Down
7 changes: 7 additions & 0 deletions e2e/excludePaths/phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
parameters:
level: 8
paths:
- src
excludePaths:
analyse:
- src/thirdparty
13 changes: 13 additions & 0 deletions e2e/excludePaths/src/foo.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

namespace App;

class Foo extends \ThirdParty\Bar
{

public function doFoo(): void
{
$this->doBar();
}

}
13 changes: 13 additions & 0 deletions e2e/excludePaths/src/thirdparty/Bar.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

namespace ThirdParty;

class Bar
{

public function doBar()
{
return;
}

}

0 comments on commit 610e294

Please sign in to comment.