Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Commit

Permalink
phpstan level 5
Browse files Browse the repository at this point in the history
  • Loading branch information
xaviermarchegay committed Feb 15, 2022
1 parent f59e2c0 commit a56b06a
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 2 deletions.
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@
"require-dev": {
"doctrine/doctrine-fixtures-bundle": "^3.4",
"friendsofphp/php-cs-fixer": "^3.6",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan": "^1",
"phpstan/phpstan-doctrine": "^1.2",
"phpstan/phpstan-symfony": "^1.1",
"rector/rector": "^0.12.13",
"roave/security-advisories": "dev-latest",
"squizlabs/php_codesniffer": "^3.6",
Expand Down
4 changes: 3 additions & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
parameters:
level: 3
level: 5
paths:
- src
excludePaths:
- src/DependencyInjection/Configuration.php
ignoreErrors:
- '#is never written, only read#'
2 changes: 1 addition & 1 deletion src/Controller/Crud/ProcessCrudController.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function configureFields(string $pageName): array
ProcessExecution::STATUS_FAIL => '<button class="btn btn-danger btn-lm">failed</button>',
ProcessExecution::STATUS_START => '<button class="btn btn-warning btn-lm">started</button>',
ProcessExecution::STATUS_SUCCESS => '<button class="btn btn-success btn-lm">success</button>',
null => ''
default => '<button class="btn btn-info btn-lm">unknown</button>',
};
}),
];
Expand Down
1 change: 1 addition & 0 deletions src/Controller/Crud/ProcessExecutionCrudController.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public function configureFields(string $pageName): array
ProcessExecution::STATUS_FAIL => '<button class="btn btn-danger btn-lm">failed</button>',
ProcessExecution::STATUS_START => '<button class="btn btn-warning btn-lm">started</button>',
ProcessExecution::STATUS_SUCCESS => '<button class="btn btn-success btn-lm">succcess</button>',
default => '<button class="btn btn-info btn-lm">unknown</button>',
};
}),
];
Expand Down
9 changes: 9 additions & 0 deletions symfony.lock
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,18 @@
"php-cs-fixer/diff": {
"version": "v2.0.2"
},
"phpstan/extension-installer": {
"version": "1.1.0"
},
"phpstan/phpstan": {
"version": "0.12.89"
},
"phpstan/phpstan-doctrine": {
"version": "1.2.10"
},
"phpstan/phpstan-symfony": {
"version": "1.1.5"
},
"psr/cache": {
"version": "1.0.1"
},
Expand Down

0 comments on commit a56b06a

Please sign in to comment.