File tree Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 13
13
uses : shivammathur/setup-php@v2
14
14
with :
15
15
php-version : " 8.4"
16
- tools : phpcs:3.12 , php-cs-fixer:3.75, phpstan:2.1.11
16
+ tools : phpcs:3.13 , php-cs-fixer:3.75, phpstan:2.1.17
17
17
coverage : none
18
18
env :
19
19
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 70
70
" @open-cover" ,
71
71
" @start"
72
72
],
73
- "open-cover" : " start chrome file:///D :/Coding/PHP/advent-of-code-solutions/.tools/phpunit-coverage/index.html" ,
74
- "open-doc" : " start chrome file:///D :/Coding/PHP/advent-of-code-solutions/docs/index.html" ,
75
- "open-metrics" : " start chrome file:///D :/Coding/PHP/advent-of-code-solutions/.tools/phpmetrics/index.html" ,
73
+ "open-cover" : " start chrome file:///E :/Coding/PHP/advent-of-code-solutions/.tools/phpunit-coverage/index.html" ,
74
+ "open-doc" : " start chrome file:///E :/Coding/PHP/advent-of-code-solutions/docs/index.html" ,
75
+ "open-metrics" : " start chrome file:///E :/Coding/PHP/advent-of-code-solutions/.tools/phpmetrics/index.html" ,
76
76
"clean" : [
77
77
" if exist .tools\\ .phpcs.cache del .tools\\ .phpcs.cache" ,
78
78
" if exist .tools\\ .php-cs-fixer.cache del .tools\\ .php-cs-fixer.cache" ,
Original file line number Diff line number Diff line change 2
2
<!--
3
3
phpcs configuration file.
4
4
5
- minimum version: ^3.12
5
+ minimum version: ^3.13
6
6
7
7
@see https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki/Annotated-Ruleset
8
8
-->
Original file line number Diff line number Diff line change 1
1
# PHPStan configuration file.
2
2
#
3
- # minimum version: ^2.1.11
3
+ # minimum version: ^2.1.17
4
4
#
5
5
# @see https://phpstan.org/config-reference
6
6
parameters :
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ public function mark(int $number): void
142
142
if (($ this ->board [$ number ] ?? -1 ) == -1 ) {
143
143
return ;
144
144
}
145
- $ this ->markedMask |= (1 << ( $ this ->board [$ number ] ?? 0 ) );
145
+ $ this ->markedMask |= (1 << $ this ->board [$ number ]);
146
146
foreach (self ::WIN_MASKS as $ mask ) {
147
147
if (($ this ->markedMask & $ mask ) == $ mask ) {
148
148
$ this ->isWon = true ;
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ public static function fromString(string $s): static
83
83
if (count ($ a ) != 2 ) {
84
84
throw new \Exception ('Invalid input ' );
85
85
}
86
- // @phpstan-ignore new.static
86
+ // @phpstan-ignore-next-line new.staticInAbstractClassStaticMethod
87
87
$ m = new static ();
88
88
$ m ->name = $ a [0 ];
89
89
$ m ->outputs = explode (', ' , $ a [1 ]);
You can’t perform that action at this time.
0 commit comments