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 2b0e31c commit 27f5bbf
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,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/Connector.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ private function executeConnector(Style\SymfonyStyle $io, Input\InputInterface $

$findConnectorQuery = new Queries\FindConnectors();

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

stubFiles:
- ../tests/stubs/BaseLinkInterface.stub
- ../tests/stubs/ContextInterface.stub
- ../tests/stubs/LinkInterface.stub
- ../tests/stubs/PositionInterface.stub
- ../tests/stubs/SchemaInterface.stub

ignoreErrors:
- message: '#^Method FastyBird\\Module\\Devices\\Entities\\Devices\\Device::getSource\(\) never returns FastyBird\\Library\\Metadata\\Types\\ConnectorSource so it can be removed from the return type.#'
- message: '#^Method FastyBird\\Module\\Devices\\Entities\\Devices\\Device::getSource\(\) never returns FastyBird\\Library\\Metadata\\Types\\PluginSource so it can be removed from the return type.#'
Expand Down
7 changes: 7 additions & 0 deletions tools/phpstan.src.neon
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,10 @@ includes:

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

stubFiles:
- ../tests/stubs/BaseLinkInterface.stub
- ../tests/stubs/ContextInterface.stub
- ../tests/stubs/LinkInterface.stub
- ../tests/stubs/PositionInterface.stub
- ../tests/stubs/SchemaInterface.stub

0 comments on commit 27f5bbf

Please sign in to comment.