File tree Expand file tree Collapse file tree 4 files changed +24
-14
lines changed
Expand file tree Collapse file tree 4 files changed +24
-14
lines changed Original file line number Diff line number Diff line change 1212 matrix :
1313 php : ['8.1', '8.2', '8.3', '8.4']
1414 stability : [prefer-lowest, prefer-stable]
15+ include :
16+ - php : ' 8.5'
17+ flags : " --ignore-platform-req=php"
18+ stability : prefer-stable
1519 steps :
1620 - name : Checkout code
1721 uses : actions/checkout@v4
@@ -45,11 +49,16 @@ jobs:
4549
4650 - name : Run Unit tests with coverage
4751 run : composer phpunit -- ${{ matrix.phpunit-flags }}
52+ if : ${{ matrix.php != '8.5' }}
53+
54+ - name : Run Unit tests without coverage
55+ run : vendor/bin/phpunit --no-coverage
56+ if : ${{ matrix.php == '8.5' }}
4857
4958 - name : Run static analysis
50- run : composer phpstan
51- if : ${{ matrix.php == '8.3 ' && matrix.stability == 'prefer-stable'}}
59+ run : composer phpstan-build
60+ if : ${{ matrix.php == '8.4 ' && matrix.stability == 'prefer-stable'}}
5261
5362 - name : Run Coding style rules
5463 run : composer phpcs:fix
55- if : ${{ matrix.php == '8.3 ' && matrix.stability == 'prefer-stable'}}
64+ if : ${{ matrix.php == '8.4 ' && matrix.stability == 'prefer-stable'}}
Original file line number Diff line number Diff line change 4242 "php" : " ^8.1"
4343 },
4444 "require-dev" : {
45- "friendsofphp/php-cs-fixer" : " ^3.65.0 " ,
45+ "friendsofphp/php-cs-fixer" : " ^3.89.2 " ,
4646 "httpwg/structured-field-tests" : " *@dev" ,
47- "phpstan/phpstan" : " ^2.0.3 " ,
48- "phpstan/phpstan-strict-rules" : " ^2.0" ,
49- "phpstan/phpstan-phpunit" : " ^2.0.1 " ,
50- "phpstan/phpstan-deprecation-rules" : " ^2.0.1 " ,
51- "phpunit/phpunit" : " ^10.5.38 || ^11.5.0 " ,
52- "symfony/var-dumper" : " ^6.4.15 || ^v7.2.0 " ,
47+ "phpstan/phpstan" : " ^2.1.32 " ,
48+ "phpstan/phpstan-strict-rules" : " ^2.0.7 " ,
49+ "phpstan/phpstan-phpunit" : " ^2.0.8 " ,
50+ "phpstan/phpstan-deprecation-rules" : " ^2.0.3 " ,
51+ "phpunit/phpunit" : " ^10.5.38 || ^11.5.43 " ,
52+ "symfony/var-dumper" : " ^6.4.15 || ^7.3.5 " ,
5353 "bakame/aide-base32" : " dev-main" ,
54- "phpbench/phpbench" : " ^1.3.1 "
54+ "phpbench/phpbench" : " ^1.4.3 "
5555 },
5656 "autoload" : {
5757 "psr-4" : {
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ public static function fromPairs(StructuredFieldProvider|Dictionary|Parameters|i
105105 return match (true ) {
106106 $ pairs instanceof Dictionary,
107107 $ pairs instanceof Parameters => new self ($ pairs ->toAssociative ()),
108- default => new self ((function (iterable $ pairs ) {
108+ default => new self ((function (iterable $ pairs ) { /* @phpstan-ignore-line */
109109 foreach ($ pairs as [$ key , $ member ]) {
110110 yield $ key => Member::innerListOrItemFromPair ($ member );
111111 }
@@ -671,12 +671,13 @@ public function mergeAssociative(StructuredFieldProvider|iterable ...$others): s
671671 $ other = $ other ->toAssociative ();
672672 }
673673
674+ /** @var string $key */
674675 foreach ($ other as $ key => $ value ) {
675676 $ members [$ key ] = $ value ;
676677 }
677678 }
678679
679- return new self ($ members );
680+ return new self ($ members ); /* @phpstan-ignore-line */
680681 }
681682
682683 /**
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ public static function fromPairs(StructuredFieldProvider|iterable $pairs): self
106106 return match (true ) {
107107 $ pairs instanceof Parameters,
108108 $ pairs instanceof Dictionary => new self ($ pairs ->toAssociative ()),
109- default => new self ((function (iterable $ pairs ) {
109+ default => new self ((function (iterable $ pairs ) { /* @phpstan-ignore-line */
110110 foreach ($ pairs as [$ key , $ member ]) {
111111 yield $ key => $ member ;
112112 }
You can’t perform that action at this time.
0 commit comments