diff --git a/composer.json b/composer.json index 50bc3b72..3636317f 100644 --- a/composer.json +++ b/composer.json @@ -18,8 +18,8 @@ "require": { "php": "^7.2.5 || ^8.0", "ext-pcre": "*", - "graham-campbell/result-type": "^1.1.2", - "phpoption/phpoption": "^1.9.2", + "graham-campbell/result-type": "^1.1.3", + "phpoption/phpoption": "^1.9.3", "symfony/polyfill-ctype": "^1.24", "symfony/polyfill-mbstring": "^1.24", "symfony/polyfill-php80": "^1.24" diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index ae965032..86edd7ee 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -1,7 +1,7 @@ parameters: ignoreErrors: - - message: "#^Anonymous function should return GrahamCampbell\\\\ResultType\\\\Result\\ but returns GrahamCampbell\\\\ResultType\\\\Result\\\\.$#" + message: "#^Parameter \\#2 \\$callback of function array_reduce expects callable\\(GrahamCampbell\\\\ResultType\\\\Result\\\\|GrahamCampbell\\\\ResultType\\\\Result\\, string\\)\\: \\(GrahamCampbell\\\\ResultType\\\\Result\\\\|GrahamCampbell\\\\ResultType\\\\Result\\\\), Closure\\(GrahamCampbell\\\\ResultType\\\\Result, string\\)\\: GrahamCampbell\\\\ResultType\\\\Result\\ given\\.$#" count: 1 path: src/Parser/EntryParser.php diff --git a/psalm-baseline.xml b/psalm-baseline.xml index a86b8ae0..3d8d69c8 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -1,28 +1,36 @@ - + - \is_scalar($value) + - $adapter::create() - $reader::create() - $writer::create() + + + - static function ($adapter) { - static function ($reader) { - static function ($writer) { + + + - $pattern - $pattern - $pattern - $pattern + + + + + + + + + ]]> + diff --git a/psalm.xml b/psalm.xml index ef184d85..30adb0ee 100644 --- a/psalm.xml +++ b/psalm.xml @@ -6,6 +6,8 @@ xmlns="https://getpsalm.org/schema/config" xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd" errorBaseline="psalm-baseline.xml" + findUnusedBaselineEntry="true" + findUnusedCode="false" > diff --git a/vendor-bin/phpstan/composer.json b/vendor-bin/phpstan/composer.json index 5889256c..ea7c6430 100644 --- a/vendor-bin/phpstan/composer.json +++ b/vendor-bin/phpstan/composer.json @@ -1,10 +1,10 @@ { "require": { "php": "^8.3", - "phpstan/phpstan": "1.10.41", - "phpstan/extension-installer": "1.3.1", - "phpstan/phpstan-deprecation-rules": "1.1.4", - "phpstan/phpstan-strict-rules": "1.5.2", + "phpstan/phpstan": "1.11.7", + "phpstan/extension-installer": "1.4.1", + "phpstan/phpstan-deprecation-rules": "1.2.0", + "phpstan/phpstan-strict-rules": "1.6.0", "thecodingmachine/phpstan-strict-rules": "1.0.0" }, "config": { diff --git a/vendor-bin/psalm/composer.json b/vendor-bin/psalm/composer.json index e76dd540..151617dd 100644 --- a/vendor-bin/psalm/composer.json +++ b/vendor-bin/psalm/composer.json @@ -1,7 +1,7 @@ { "require": { "php": "^8.3", - "psalm/phar": "5.15.0" + "psalm/phar": "5.25.0" }, "config": { "preferred-install": "dist"