Skip to content

Commit

Permalink
Install gacela phpstan-extension
Browse files Browse the repository at this point in the history
  • Loading branch information
Chemaclass committed Apr 23, 2023
1 parent 5892c78 commit 7308241
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.16",
"phpunit/phpunit": "^9.6",
"gacela-project/phpstan-extension": "^0.3.0",
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^9.6",
"psalm/plugin-phpunit": "^0.18",
"symfony/var-dumper": "^5.4",
"vimeo/psalm": "^5.9"
Expand Down
8 changes: 8 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
includes:
- vendor/gacela-project/phpstan-extension/extension.neon

parameters:
level: max
paths:
- %currentWorkingDirectory%/src/
checkGenericClassInNonGenericObjectType: false
checkMissingIterableValueType: false

gacela:
modulesNamespace: PhpLightning
excludedNamespaces:
- PhpLightning\Shared

ignoreErrors:
- '#Cannot cast mixed to .*.#'
- '#Method PhpLightning\\.*::.* should return array<.*> but returns array#'
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/InvoiceFacadeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ private function mockLnPaymentRequest(): void
new class() extends AbstractDependencyProvider {
public function provideModuleDependencies(Container $container): void
{
$container->set(InvoiceDependencyProvider::HTTP_API, static fn() => new FakeHttpApi());
$container->set(InvoiceDependencyProvider::HTTP_API, static fn () => new FakeHttpApi());
}
},
);
Expand Down

0 comments on commit 7308241

Please sign in to comment.