Skip to content

Commit

Permalink
Update GitHub action's setup-php due to CVE
Browse files Browse the repository at this point in the history
  • Loading branch information
GenieTim committed Jan 30, 2022
1 parent 4776b42 commit 2af905e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/code_style_check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v1
- uses: shivammathur/setup-php@v2
with:
php-version: 7.3
coverage: none # disable xdebug, pcov
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/static_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v1
- uses: shivammathur/setup-php@v2
with:
php-version: 7.3
coverage: none # disable xdebug, pcov
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Setup PHP
# use PHP of specific version
uses: shivammathur/setup-php@v1
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none # disable xdebug, pcov
Expand Down
5 changes: 4 additions & 1 deletion ecs.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@

$parameters = $containerConfigurator->parameters();

$parameters->set(Option::SETS, [SetList::CLEAN_CODE, SetList::PSR_12]);
$parameters->set(Option::SETS, [
SetList::CLEAN_CODE,
SetList::PSR_12
]);

$parameters->set(Option::PATHS, [__DIR__ . '/src', __DIR__ . '/tests']);

Expand Down
2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ parameters:
- src
# - tests

# things we disable for the moement, but one day...
# things we disable for the moment, but one day...
inferPrivatePropertyTypeFromConstructor: true
checkMissingIterableValueType: false
checkGenericClassInNonGenericObjectType: false
Expand Down

0 comments on commit 2af905e

Please sign in to comment.