Skip to content

Commit

Permalink
[TASK] Update dev tools (#41)
Browse files Browse the repository at this point in the history
> composer req --dev phpunit/phpunit:"^11.5.7 || ^12.0.2"
> composer req --dev friendsofphp/php-cs-fixer:^3.69.0
> composer req --dev phpstan/phpstan:^2.1.5
> vendor/bin/phpstan -b
  • Loading branch information
lolli42 authored Feb 16, 2025
1 parent c28b95e commit 982f7d5
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 10 deletions.
1 change: 0 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ jobs:
run: vendor/bin/php-cs-fixer fix -v --diff --dry-run --show-progress none

- name: Phpstan
if: ${{ matrix.php <= '8.3' }}
run: vendor/bin/phpstan analyze --no-progress

- name: Phpunit
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
"ext-mbstring": "*"
},
"require-dev": {
"phpunit/phpunit": "^11.2.6",
"friendsofphp/php-cs-fixer": "^3.59.3",
"phpstan/phpstan": "^1.10.57"
"phpunit/phpunit": "^11.5.7 || ^12.0.2",
"friendsofphp/php-cs-fixer": "^3.69.0",
"phpstan/phpstan": "^2.1.5"
},
"replace": {
"cogpowered/finediff": "*"
Expand Down
13 changes: 13 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
parameters:
ignoreErrors:
-
message: '#^Instanceof between cogpowered\\FineDiff\\Parser\\Operations\\OperationInterface and cogpowered\\FineDiff\\Parser\\Operations\\OperationInterface will always evaluate to true\.$#'
identifier: instanceof.alwaysTrue
count: 1
path: src/Parser/Opcodes.php

-
message: '#^Parameter \#1 \$opcodes of method cogpowered\\FineDiff\\Parser\\Opcodes\:\:setOpcodes\(\) expects array\<int, cogpowered\\FineDiff\\Parser\\Operations\\OperationInterface\>, array\<int, string\> given\.$#'
identifier: argument.type
count: 1
path: tests/Parser/OpcodesTest.php
9 changes: 3 additions & 6 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
includes:
- phpstan-baseline.neon

parameters:
level: 8

paths:
- ./src
- ./tests

ignoreErrors:
-
message: "#^Parameter \\#1 \\$opcodes of method cogpowered\\\\FineDiff\\\\Parser\\\\Opcodes\\:\\:setOpcodes\\(\\) expects array\\<int, cogpowered\\\\FineDiff\\\\Parser\\\\Operations\\\\OperationInterface\\>, array\\<int, string\\> given\\.$#"
count: 1
path: tests/Parser/OpcodesTest.php

0 comments on commit 982f7d5

Please sign in to comment.