Update dependencies

This commit is contained in:
Tristan 2023-12-01 11:04:30 +01:00
parent bdbb32bbbf
commit c5400b78d8
Signed by: trizz
SSH Key Fingerprint: SHA256:Xsd2dTN+ZC3OZWfvuKIDMQ/1lWicuINSEPgRQw/CJT8
7 changed files with 704 additions and 897 deletions

View File

@ -9,28 +9,28 @@ steps:
- composer install - composer install
- name: phpstan - name: phpstan
image: php:8.1 image: php:8.3
depends_on: depends_on:
- install - install
commands: commands:
- vendor/bin/phpstan analyse - vendor/bin/phpstan analyse
- name: rector - name: rector
image: php:8.1 image: php:8.3
depends_on: depends_on:
- install - install
commands: commands:
- vendor/bin/rector process --dry-run - vendor/bin/rector process --dry-run
- name: phpunit - name: phpunit
image: php:8.1 image: php:8.3
depends_on: depends_on:
- install - install
commands: commands:
- vendor/bin/phpunit - vendor/bin/phpunit
- name: style check - name: style check
image: php:8.1 image: php:8.3
depends_on: depends_on:
- install - install
commands: commands:

View File

@ -10,7 +10,7 @@
} }
], ],
"require": { "require": {
"php": "^8.1", "php": "^8.3",
"ext-mbstring": "*", "ext-mbstring": "*",
"cebe/markdown": "^1.2", "cebe/markdown": "^1.2",
"phppkg/cli-markdown": "^2.0", "phppkg/cli-markdown": "^2.0",
@ -19,11 +19,12 @@
"require-dev": { "require-dev": {
"friendsofphp/php-cs-fixer": "^3.3", "friendsofphp/php-cs-fixer": "^3.3",
"jetbrains/phpstorm-attributes": "^1.0", "jetbrains/phpstorm-attributes": "^1.0",
"nunomaduro/collision": "^6", "nunomaduro/collision": "^7",
"phpstan/phpstan": "^1.2", "phpstan/phpstan": "^1.2",
"phpunit/phpunit": "^9.5", "phpunit/phpunit": "^10.5",
"rector/rector": "^0.14.8", "rector/rector": "^0.18",
"symfony/var-dumper": "^6.0" "robiningelbrecht/phpunit-pretty-print": "^1.2",
"symfony/var-dumper": "^7"
}, },
"autoload": { "autoload": {
"psr-4": { "psr-4": {

1530
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -15,16 +15,6 @@ parameters:
count: 1 count: 1
path: src/Y21/Day4.php 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\\.$#" message: "#^Method trizz\\\\AdventOfCode\\\\Y21\\\\Day6\\:\\:processDay\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1 count: 1
@ -35,11 +25,6 @@ parameters:
count: 1 count: 1
path: src/Y21/Day6.php 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\\.$#" message: "#^Method trizz\\\\AdventOfCode\\\\Y21\\\\Day8\\:\\:mapDigits\\(\\) has parameter \\$patterns with no value type specified in iterable type array\\.$#"
count: 1 count: 1

View File

@ -1,28 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" bootstrap="vendor/autoload.php"
bootstrap="vendor/autoload.php" executionOrder="depends,defects" beStrictAboutOutputDuringTests="true" failOnRisky="false" failOnWarning="true"
cacheResultFile=".phpunit.cache/test-results" cacheDirectory=".phpunit.cache" requireCoverageMetadata="false" beStrictAboutCoverageMetadata="false" colors="true">
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">
<testsuites> <testsuites>
<testsuite name="default"> <testsuite name="default">
<directory>tests</directory> <directory>tests</directory>
</testsuite> </testsuite>
</testsuites> </testsuites>
<coverage/>
<coverage cacheDirectory=".phpunit.cache/code-coverage" <source>
processUncoveredFiles="true">
<include> <include>
<directory suffix=".php">src</directory> <directory suffix=".php">src</directory>
</include> </include>
</coverage> </source>
<extensions>
<bootstrap class="RobinIngelbrecht\PHPUnitPrettyPrint\PhpUnitExtension">
</bootstrap>
</extensions>
</phpunit> </phpunit>

View File

@ -2,7 +2,6 @@
declare(strict_types=1); declare(strict_types=1);
use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
use Rector\Config\RectorConfig; use Rector\Config\RectorConfig;
use Rector\Set\ValueObject\LevelSetList; use Rector\Set\ValueObject\LevelSetList;
use Rector\Set\ValueObject\SetList; 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 // define sets of rules
$rectorConfig->sets( $rectorConfig->sets(
[ [
LevelSetList::UP_TO_PHP_81, LevelSetList::UP_TO_PHP_83,
SetList::CODE_QUALITY, SetList::CODE_QUALITY,
SetList::CODING_STYLE, SetList::CODING_STYLE,
SetList::TYPE_DECLARATION_STRICT, SetList::TYPE_DECLARATION,
SetList::NAMING, SetList::NAMING,
SetList::PRIVATIZATION, SetList::PRIVATIZATION,
SetList::EARLY_RETURN, SetList::EARLY_RETURN,

View File

@ -51,7 +51,7 @@ final class SolutionsTest extends TestCase
/** /**
* @return array<string, array<int, Solution>> * @return array<string, array<int, Solution>>
*/ */
public function loadSolutions(): array public static function loadSolutions(): array
{ {
$classes = []; $classes = [];
for ($year = 15; $year <= date('y'); ++$year) { for ($year = 15; $year <= date('y'); ++$year) {