File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111jobs :
1212 build :
1313
14+ strategy :
15+ matrix :
16+ php : [ '7.4', '8.0', '8.1' ]
17+
1418 runs-on : ubuntu-latest
1519
1620 steps :
1721 - name : Checkout
18- uses : actions/checkout@v1
22+ uses : actions/checkout@v3
1923
2024 - name : ShellCheck
21- uses : ludeeus/action-shellcheck@1.0.0
25+ uses : ludeeus/action-shellcheck@master
2226 with :
2327 scandir : ' ./bin'
2428
2529 - name : Set up PHP
2630 uses : shivammathur/setup-php@v2
2731 with :
28- php-version : 7.2
32+ php-version : ${{matrix.php}}
2933
3034 - name : Test
3135 run : |
3236 composer install
33- ./vendor/bin/phpcs
37+ ./vendor/bin/phpcs -s
3438 SYMFONY_DEPRECATIONS_HELPER=disabled ./vendor/bin/simple-phpunit
Original file line number Diff line number Diff line change 11<?php
2+
23declare (strict_types=1 );
34
45namespace Wikimedia \ToolforgeBundle \Command ;
Original file line number Diff line number Diff line change 11<?php
2+
23declare (strict_types=1 );
34
45namespace Wikimedia \ToolforgeBundle \Logger ;
Original file line number Diff line number Diff line change 44
55 <!-- Slevomat standards; see https://github.com/slevomat/coding-standard -->
66 <config name =" installed_paths" value =" ../../slevomat/coding-standard" /><!-- relative path from PHPCS source location -->
7- <rule ref =" SlevomatCodingStandard.TypeHints.TypeHintDeclaration" >
8- <exclude name =" SlevomatCodingStandard.TypeHints.TypeHintDeclaration.UselessDocComment" />
7+ <rule ref =" SlevomatCodingStandard.TypeHints.ParameterTypeHint" >
8+ <exclude name =" SlevomatCodingStandard.TypeHints.ParameterTypeHint.UselessAnnotation" />
9+ <exclude name =" SlevomatCodingStandard.TypeHints.ParameterTypeHint.UselessSuppress" />
910 </rule >
1011 <rule ref =" SlevomatCodingStandard.TypeHints.DeclareStrictTypes" >
1112 <exclude
Original file line number Diff line number Diff line change 11<?php
2+
23declare (strict_types=1 );
34
45namespace Wikimedia \ToolforgeBundle \Service ;
Original file line number Diff line number Diff line change 11<?php
2+
23declare (strict_types=1 );
34
45namespace Wikimedia \ToolforgeBundle \Tests \Service ;
Original file line number Diff line number Diff line change @@ -195,6 +195,7 @@ function ($filename) {
195195 * Whether the current (or specified) language is right-to-left.
196196 * @param string|bool $lang Language code (if false, will use current language).
197197 * @return bool
198+ * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint
198199 */
199200 public function isRtl ($ lang = false ): bool
200201 {
@@ -268,6 +269,7 @@ public function getFilters(): array
268269 * @param int|float $number
269270 * @param int $decimals Number of decimals to format to.
270271 * @return string
272+ * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint
271273 */
272274 public function numberFormat ($ number , int $ decimals = 0 ): string
273275 {
Original file line number Diff line number Diff line change 3737 "symfony/console" : " ^4.4|^5.2"
3838 },
3939 "require-dev" : {
40- "slevomat/coding-standard" : " ^4.8 " ,
40+ "slevomat/coding-standard" : " ^8.0 " ,
4141 "symfony/phpunit-bridge" : " ^4.4"
42+ },
43+ "config" : {
44+ "allow-plugins" : {
45+ "dealerdirect/phpcodesniffer-composer-installer" : false
46+ }
4247 }
4348}
You can’t perform that action at this time.
0 commit comments