From fe3c7d72bdc4bb2e920e45deac97f42046d73254 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Tue, 2 May 2023 00:51:01 +0100 Subject: [PATCH] chore: bumps dependencies and fixes static analysis --- composer.json | 2 +- phpstan.neon | 2 +- tests/.snapshots/success.txt | 3 ++- tests/Visual/Parallel.php | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 91ca38d9..fcc83117 100644 --- a/composer.json +++ b/composer.json @@ -49,7 +49,7 @@ ] }, "require-dev": { - "pestphp/pest-dev-tools": "^2.7.0", + "pestphp/pest-dev-tools": "^2.8.0", "symfony/process": "^6.2.10" }, "minimum-stability": "stable", diff --git a/phpstan.neon b/phpstan.neon index 15f9f39c..1cd3a087 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -12,6 +12,7 @@ parameters: reportUnmatchedIgnoredErrors: true ignoreErrors: + - "#has a nullable return type declaration.#" - "#Language construct isset\\(\\) should not be used.#" - "#is not allowed to extend#" - "#is concrete, but does not have a Test suffix#" @@ -20,4 +21,3 @@ parameters: - "# with null as default value#" - "#has parameter \\$closure with default value.#" - "#has parameter \\$description with default value.#" - - "#Method Pest\\\\Support\\\\Reflection::getParameterClassName\\(\\) has a nullable return type declaration.#" diff --git a/tests/.snapshots/success.txt b/tests/.snapshots/success.txt index f6505826..75d6a29c 100644 --- a/tests/.snapshots/success.txt +++ b/tests/.snapshots/success.txt @@ -657,6 +657,7 @@ ✓ failures 5 ✓ failures 6 ✓ failures 7 + ✓ failures 8 ✓ failures with custom message ✓ not failures ✓ closure missing parameter @@ -1033,4 +1034,4 @@ PASS Tests\Visual\Version ✓ visual snapshot of help command output - Tests: 1 deprecated, 3 warnings, 4 incomplete, 1 notice, 8 todos, 17 skipped, 714 passed (1722 assertions) \ No newline at end of file + Tests: 1 deprecated, 3 warnings, 4 incomplete, 1 notice, 8 todos, 17 skipped, 715 passed (1727 assertions) \ No newline at end of file diff --git a/tests/Visual/Parallel.php b/tests/Visual/Parallel.php index 8e220884..a418512e 100644 --- a/tests/Visual/Parallel.php +++ b/tests/Visual/Parallel.php @@ -18,7 +18,7 @@ $run = function () { test('parallel', function () use ($run) { expect($run('--exclude-group=integration')) - ->toContain('Tests: 1 deprecated, 3 warnings, 4 incomplete, 1 notice, 8 todos, 14 skipped, 702 passed (1707 assertions)') + ->toContain('Tests: 1 deprecated, 3 warnings, 4 incomplete, 1 notice, 8 todos, 14 skipped, 703 passed (1712 assertions)') ->toContain('Parallel: 3 processes'); })->skipOnWindows();