Skip to content

Commit 44891e0

Browse files
committed
bump tooling version
1 parent bbd0cbe commit 44891e0

17 files changed

+24
-20
lines changed

.github/workflows/qa.yml

Lines changed: 2 additions & 2 deletions
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.9, php-cs-fixer:3.56, phpstan:1.11
16+
tools: phpcs:3.10, php-cs-fixer:3.59, phpstan:1.11
1717
coverage: none
1818
env:
1919
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -45,7 +45,7 @@ jobs:
4545
with:
4646
php-version: "8.3"
4747
extensions: mbstring, bcmath, xdebug
48-
tools: phpunit:11.1
48+
tools: phpunit:11.2
4949
coverage: xdebug
5050
env:
5151
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.php-cs-fixer.dist.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* php-cs-fixer configuration file.
55
*
6-
* minimum version: ^3.56
6+
* minimum version: ^3.59
77
*
88
* @see https://cs.symfony.com/doc/config.html
99
*/
@@ -55,5 +55,6 @@
5555
->setCacheFile(__DIR__ . '/.tools/.php-cs-fixer.cache')
5656
->setIndent(" ")
5757
->setLineEnding("\n")
58+
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
5859
->setFinder($finder)
5960
;

composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@
4747
"metrics": "phpmetrics --config=.phpmetrics.json",
4848
"stan": "phpstan --ansi --verbose",
4949
"qa": [
50+
"parallel-lint --version",
51+
"@lint",
5052
"phpcs --version",
5153
"@cs",
5254
"@cs-fixer",

composer.lock

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpcs.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<!--
33
phpcs configuration file.
44
5-
minimum version: ^3.9
5+
minimum version: ^3.10
66
77
@see https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki/Annotated-Ruleset
88
-->

phpdoc.dist.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<!--
33
PHPDocumentor configuration file.
44
5-
minimum version: ^3.2
5+
minimum version: ^3.5
66
77
@see https://docs.phpdoc.org/guide/references/configuration.html
88
-->

phpunit.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
<!--
33
PHPUnit configuration file.
44
5-
minimum version: ^11.1
5+
minimum version: ^11.2
66
77
@see https://phpunit.readthedocs.io/en/11.0/configuration.html
88
-->
99
<phpunit
1010
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
11-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.1/phpunit.xsd"
11+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.2/phpunit.xsd"
1212
bootstrap="vendor/autoload.php"
1313
cacheDirectory=".tools/.phpunit.cache/"
1414
colors="true"

src/Aoc/AocRunner.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public function run(): void
128128
echo '======= ' . $year . ' ' . str_repeat('=', 45) . PHP_EOL;
129129
$lastYear = $year;
130130
}
131-
if (isset(self::TO_SKIP[$year]) and in_array($day, self::TO_SKIP[$year])) {
131+
if (in_array($day, self::TO_SKIP[$year])) {
132132
echo '=== AoC ' . $year . ' Day ' . str_pad(strval($day), 2, '0', STR_PAD_LEFT) . PHP_EOL;
133133
echo Tags::WARN_TAG . 'Skipped.' . PHP_EOL;
134134
++$countSkipped;
@@ -189,7 +189,7 @@ public function runSingleAsClass(int $year, int $day): bool
189189
return false;
190190
}
191191
$className = $this->getClassName($year, $day);
192-
$fullClassName = 'TBali\\Aoc' . $year . '\\' . $className;
192+
$fullClassName = 'TBali\Aoc' . $year . '\\' . $className;
193193
/** @var Solution */
194194
$solution = new $fullClassName();
195195
$success = $solution->run();

tests/Aoc2015Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
* @coversNothing
5757
*/
5858
#[RequiresPhp('^8.3')]
59-
#[RequiresPhpunit('^11.0')]
59+
#[RequiresPhpunit('^11.2')]
6060
#[CoversClass(Aoc2015Day01::class)]
6161
#[CoversClass(Aoc2015Day02::class)]
6262
#[CoversClass(Aoc2015Day03::class)]

tests/Aoc2016Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
* @coversNothing
5151
*/
5252
#[RequiresPhp('^8.3')]
53-
#[RequiresPhpunit('^11.0')]
53+
#[RequiresPhpunit('^11.2')]
5454
#[CoversClass(Aoc2016Day01::class)]
5555
#[CoversClass(Aoc2016Day02::class)]
5656
#[CoversClass(Aoc2016Day03::class)]

0 commit comments

Comments
 (0)