Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/on_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:
run: composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader
- name: Run PHP CodeSniffer
run: composer phpcs
- name: Run PHPStan
run: composer phpstan
- name: Install Composer dependencies (without dev)
run: composer install --no-progress --no-dev --no-suggest --prefer-dist --optimize-autoloader

Expand Down
8 changes: 5 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@
"interfaces"
],
"require-dev": {
"squizlabs/php_codesniffer": "^3.9"
"squizlabs/php_codesniffer": "^3.9",
"phpstan/phpstan": "^2.0"
},
"scripts": {
"phpcs": "phpcs --standard=phpcs.xml.dist src/",
"phpcbf": "phpcbf --standard=phpcs.xml.dist src/"
"phpcs": "phpcs",
"phpcbf": "phpcbf",
"phpstan": "phpstan"
}
}
9 changes: 9 additions & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
parameters:
level: max
paths:
- src

# Ignore vendor directory
excludePaths:
- vendor

4 changes: 2 additions & 2 deletions src/SetupStepInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ public function __construct(?OutputDecorator $output);
* Execute setup step
*
* @param InstallableExtensionInterface $extension Object that will be installed/updated or removed
* @param array $params Extra params
* @param array<string, mixed> $params Extra params
*
* @return bool
*/
public function execute(InstallableExtensionInterface $extension, ...$params): bool;
public function execute(InstallableExtensionInterface $extension, array $params): bool;

/**
* Get priority to use this step
Expand Down