Skip to content

Commit f6e3d96

Browse files
authored
Merge pull request msyk#92 from matsuo/phpstan
Update PHPStan to 1.12
2 parents 722a49d + 137f84a commit f6e3d96

3 files changed

Lines changed: 10 additions & 9 deletions

File tree

.github/workflows/phpstan.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
with:
3838
path: |
3939
test/phpstan-baseline.neon
40-
key: phpstan-baseline-${{ hashFiles('test/phpstan-baseline.neon') }}
40+
key: phpstan-baseline-${{ github.run_id }}"
4141
restore-keys: |
4242
phpstan-baseline-
4343
@@ -64,8 +64,9 @@ jobs:
6464
6565
- name: Save the baseline for PHPStan
6666
id: cache-baseline-save
67+
if: matrix.level == matrix.max-level && github.event.pull_request.merged == true
6768
uses: actions/cache/save@v4
6869
with:
6970
path: |
7071
test/phpstan-baseline.neon
71-
key: phpstan-baseline-${{ hashFiles('test/phpstan-baseline.neon') }}
72+
key: phpstan-baseline-${{ github.run_id }}"

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"require-dev": {
1818
"phpunit/phpunit": "*",
1919
"phpdocumentor/phpdocumentor": ">=3",
20-
"phpstan/phpstan": "^1.11"
20+
"phpstan/phpstan": "^1.12"
2121
},
2222
"autoload": {
2323
"psr-4": {

composer.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)