Skip to content

Commit 95f9988

Browse files
committed
cs fix
1 parent b3229cc commit 95f9988

33 files changed

+310
-331
lines changed

.github/workflows/qa.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
uses: shivammathur/setup-php@v2
1414
with:
1515
php-version: "8.3"
16-
tools: phpcs:3.10, php-cs-fixer:3.61, phpstan:1.11
16+
tools: phpcs:3.10, php-cs-fixer:3.64, phpstan:1.12
1717
coverage: none
1818
env:
1919
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.php-cs-fixer.dist.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* php-cs-fixer configuration file.
55
*
6-
* minimum version: ^3.61
6+
* minimum version: ^3.64
77
*
88
* @see https://cs.symfony.com/doc/config.html
99
*/
@@ -21,10 +21,11 @@
2121

2222
return (new PhpCsFixer\Config())
2323
->setRules([
24-
'@PHP83Migration' => true,
24+
'@PHP84Migration' => true,
2525
'@PHP80Migration:risky' => true, // this also needs: ->setRiskyAllowed(true)
2626
'@PhpCsFixer' => true, // includes @Symfony, @PER-CS2.0, @PSR12, @PSR2, @PSR1
2727
'@PhpCsFixer:risky' => true, // includes @Symfony:risky, @PER-CS2.0:risky, @PSR12:risky
28+
'@PHPUnit100Migration:risky'=> true,
2829

2930
// override some @Symfony rules
3031
'blank_line_before_statement' => false,
@@ -43,13 +44,11 @@
4344
'native_function_invocation' => false,
4445
'no_trailing_whitespace_in_string' => false,
4546
'psr_autoloading' => false,
46-
'self_accessor' => false,
4747
'string_length_to_empty' => false,
4848

4949
// override some @PhpCsFixer:risky rules
5050
'comment_to_phpdoc' => false,
5151
'strict_comparison' => false,
52-
'strict_param' => false,
5352
])
5453
->setRiskyAllowed(true)
5554
->setCacheFile(__DIR__ . '/.tools/.php-cs-fixer.cache')

phpdoc.dist.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ minimum version: ^3.5
1212
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1313
xsi:schemaLocation="https://www.phpdoc.org https://docs.phpdoc.org/latest/phpdoc.xsd"
1414
>
15-
<title>Advent of Code solutions by TBali</title>
15+
<title>Advent of Code solutions in PHP by TBali</title>
1616
<paths>
1717
<output>docs</output>
1818
<cache>.tools/phpdoc/cache</cache>

phpstan.dist.neon

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# PHPStan configuration file.
22
#
3-
# minimum version: ^1.11
3+
# minimum version: ^1.12
44
#
55
# @see https://phpstan.org/config-reference
66
parameters:
@@ -17,7 +17,7 @@ parameters:
1717
- vendor
1818
ignoreErrors:
1919
-
20-
message: '#^(Static )?[Mm]ethod TBali[a-zA-Z0-9\\_]+::[a-zA-Z0-9_]+\(\) is unused.$#'
20+
message: '#^(Static )?[Mm]ethod TBali[a-zA-Z0-9\\_]+::[a-zA-Z0-9_]+\(\) is unused\.$#'
2121
identifier: method.unused
2222
includes:
2323
- phar://phpstan.phar/conf/bleedingEdge.neon

phpunit.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ PHPUnit configuration file.
44
55
minimum version: ^11.3
66
7-
@see https://phpunit.readthedocs.io/en/11.0/configuration.html
7+
@see https://phpunit.readthedocs.io/en/11.3/configuration.html
88
-->
99
<phpunit
1010
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

0 commit comments

Comments
 (0)