Update dependencies
This commit is contained in:
parent
bdbb32bbbf
commit
c5400b78d8
@ -9,28 +9,28 @@ steps:
|
||||
- composer install
|
||||
|
||||
- name: phpstan
|
||||
image: php:8.1
|
||||
image: php:8.3
|
||||
depends_on:
|
||||
- install
|
||||
commands:
|
||||
- vendor/bin/phpstan analyse
|
||||
|
||||
- name: rector
|
||||
image: php:8.1
|
||||
image: php:8.3
|
||||
depends_on:
|
||||
- install
|
||||
commands:
|
||||
- vendor/bin/rector process --dry-run
|
||||
|
||||
- name: phpunit
|
||||
image: php:8.1
|
||||
image: php:8.3
|
||||
depends_on:
|
||||
- install
|
||||
commands:
|
||||
- vendor/bin/phpunit
|
||||
|
||||
- name: style check
|
||||
image: php:8.1
|
||||
image: php:8.3
|
||||
depends_on:
|
||||
- install
|
||||
commands:
|
||||
|
@ -10,7 +10,7 @@
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": "^8.1",
|
||||
"php": "^8.3",
|
||||
"ext-mbstring": "*",
|
||||
"cebe/markdown": "^1.2",
|
||||
"phppkg/cli-markdown": "^2.0",
|
||||
@ -19,11 +19,12 @@
|
||||
"require-dev": {
|
||||
"friendsofphp/php-cs-fixer": "^3.3",
|
||||
"jetbrains/phpstorm-attributes": "^1.0",
|
||||
"nunomaduro/collision": "^6",
|
||||
"nunomaduro/collision": "^7",
|
||||
"phpstan/phpstan": "^1.2",
|
||||
"phpunit/phpunit": "^9.5",
|
||||
"rector/rector": "^0.14.8",
|
||||
"symfony/var-dumper": "^6.0"
|
||||
"phpunit/phpunit": "^10.5",
|
||||
"rector/rector": "^0.18",
|
||||
"robiningelbrecht/phpunit-pretty-print": "^1.2",
|
||||
"symfony/var-dumper": "^7"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
1530
composer.lock
generated
1530
composer.lock
generated
File diff suppressed because it is too large
Load Diff
@ -15,16 +15,6 @@ parameters:
|
||||
count: 1
|
||||
path: src/Y21/Day4.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$array of function array_values expects array, array\\<mixed, int\\|false\\>\\|string given\\.$#"
|
||||
count: 1
|
||||
path: src/Y21/Day4.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$numberList of method trizz\\\\AdventOfCode\\\\Y21\\\\Day4\\:\\:explodeNumbers\\(\\) expects string, array\\<mixed, int\\|false\\>\\|string given\\.$#"
|
||||
count: 1
|
||||
path: src/Y21/Day4.php
|
||||
|
||||
-
|
||||
message: "#^Method trizz\\\\AdventOfCode\\\\Y21\\\\Day6\\:\\:processDay\\(\\) return type has no value type specified in iterable type array\\.$#"
|
||||
count: 1
|
||||
@ -35,11 +25,6 @@ parameters:
|
||||
count: 1
|
||||
path: src/Y21/Day6.php
|
||||
|
||||
-
|
||||
message: "#^Method trizz\\\\AdventOfCode\\\\Y21\\\\Day7\\:\\:calculateFuel\\(\\) should return int but returns int\\<0, max\\>\\|false\\.$#"
|
||||
count: 1
|
||||
path: src/Y21/Day7.php
|
||||
|
||||
-
|
||||
message: "#^Method trizz\\\\AdventOfCode\\\\Y21\\\\Day8\\:\\:mapDigits\\(\\) has parameter \\$patterns with no value type specified in iterable type array\\.$#"
|
||||
count: 1
|
||||
|
27
phpunit.xml
27
phpunit.xml
@ -1,28 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
|
||||
bootstrap="vendor/autoload.php"
|
||||
cacheResultFile=".phpunit.cache/test-results"
|
||||
executionOrder="depends,defects"
|
||||
forceCoversAnnotation="false"
|
||||
beStrictAboutCoversAnnotation="false"
|
||||
beStrictAboutOutputDuringTests="true"
|
||||
beStrictAboutTodoAnnotatedTests="true"
|
||||
convertDeprecationsToExceptions="true"
|
||||
failOnRisky="false"
|
||||
failOnWarning="true"
|
||||
verbose="true"
|
||||
printerClass="NunoMaduro\Collision\Adapters\Phpunit\Printer">
|
||||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" bootstrap="vendor/autoload.php"
|
||||
executionOrder="depends,defects" beStrictAboutOutputDuringTests="true" failOnRisky="false" failOnWarning="true"
|
||||
cacheDirectory=".phpunit.cache" requireCoverageMetadata="false" beStrictAboutCoverageMetadata="false" colors="true">
|
||||
<testsuites>
|
||||
<testsuite name="default">
|
||||
<directory>tests</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
|
||||
<coverage cacheDirectory=".phpunit.cache/code-coverage"
|
||||
processUncoveredFiles="true">
|
||||
<coverage/>
|
||||
<source>
|
||||
<include>
|
||||
<directory suffix=".php">src</directory>
|
||||
</include>
|
||||
</coverage>
|
||||
</source>
|
||||
<extensions>
|
||||
<bootstrap class="RobinIngelbrecht\PHPUnitPrettyPrint\PhpUnitExtension">
|
||||
</bootstrap>
|
||||
</extensions>
|
||||
</phpunit>
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Set\ValueObject\LevelSetList;
|
||||
use Rector\Set\ValueObject\SetList;
|
||||
@ -15,16 +14,13 @@ return static function (RectorConfig $rectorConfig): void {
|
||||
]
|
||||
);
|
||||
|
||||
// register a single rule
|
||||
$rectorConfig->rule(InlineConstructorDefaultToPropertyRector::class);
|
||||
|
||||
// define sets of rules
|
||||
$rectorConfig->sets(
|
||||
[
|
||||
LevelSetList::UP_TO_PHP_81,
|
||||
LevelSetList::UP_TO_PHP_83,
|
||||
SetList::CODE_QUALITY,
|
||||
SetList::CODING_STYLE,
|
||||
SetList::TYPE_DECLARATION_STRICT,
|
||||
SetList::TYPE_DECLARATION,
|
||||
SetList::NAMING,
|
||||
SetList::PRIVATIZATION,
|
||||
SetList::EARLY_RETURN,
|
||||
|
@ -51,7 +51,7 @@ final class SolutionsTest extends TestCase
|
||||
/**
|
||||
* @return array<string, array<int, Solution>>
|
||||
*/
|
||||
public function loadSolutions(): array
|
||||
public static function loadSolutions(): array
|
||||
{
|
||||
$classes = [];
|
||||
for ($year = 15; $year <= date('y'); ++$year) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user