Skip to content

Commit

Permalink
Upgrading phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Nov 3, 2022
1 parent 142473a commit afc3a45
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"pds/skeleton": "^1.0",
"php-parallel-lint/php-parallel-lint": "^1.3",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan": "1.8.11",
"phpstan/phpstan": "^1.9",
"phpstan/phpstan-deprecation-rules": "^1.0",
"phpstan/phpstan-doctrine": "^1.3",
"phpstan/phpstan-nette": "^1.1",
Expand Down
1 change: 1 addition & 0 deletions src/Commands/Discovery.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ protected function execute(Input\InputInterface $input, Output\OutputInterface $

$findConnectorQuery = new DevicesQueries\FindConnectors();

// @phpstan-ignore-next-line
if (Uuid\Uuid::isValid($connectorId)) {
$findConnectorQuery->byId(Uuid\Uuid::fromString($connectorId));
} else {
Expand Down
1 change: 1 addition & 0 deletions src/Commands/Execute.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ protected function execute(Input\InputInterface $input, Output\OutputInterface $

$findConnectorQuery = new DevicesQueries\FindConnectors();

// @phpstan-ignore-next-line
if (Uuid\Uuid::isValid($connectorId)) {
$findConnectorQuery->byId(Uuid\Uuid::fromString($connectorId));
} else {
Expand Down
4 changes: 0 additions & 4 deletions tools/phpstan.config.src.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,3 @@ parameters:

paths:
- ../src/

stubFiles:
- ../tests/stubs/PromiseInterface.stub
- ../tests/stubs/ExtendedPromiseInterface.stub
4 changes: 4 additions & 0 deletions tools/phpstan.src.neon
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ includes:

parameters:
resultCachePath: %currentWorkingDirectory%/var/tools/PHPStan/resultCache.src.php

stubFiles:
- ../tests/stubs/PromiseInterface.stub
- ../tests/stubs/ExtendedPromiseInterface.stub

0 comments on commit afc3a45

Please sign in to comment.