From 1a6f7c994206679f0a5c4df263a7870a70a6f5ce Mon Sep 17 00:00:00 2001 From: Marc Reichel Date: Sun, 6 Sep 2026 13:51:23 +0200 Subject: [PATCH 1/3] chore: Update dependencies, remove unused Pest plugins, and upgrade PHPUnit schema --- composer.json | 8 ++------ phpunit.xml | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/composer.json b/composer.json index 25c3c84..7bdb588 100644 --- a/composer.json +++ b/composer.json @@ -6,11 +6,8 @@ "minimum-stability": "stable", "scripts": { "test": "./vendor/bin/pest --parallel", - "test:watch": "composer test -- --watch", "test:coverage": "XDEBUG_MODE=coverage composer test -- --coverage --min=97.4", - "test:coverage:watch": "composer test:coverage -- --watch", "test:type-coverage": "composer test -- --type-coverage --min=100", - "test:type-coverage:watch": "composer test:type-coverage -- --watch", "phpstan": "./vendor/bin/phpstan --memory-limit=2G", "pint": "./vendor/bin/pint" }, @@ -33,9 +30,8 @@ }, "require-dev": { "laravel/pint": "^1.16", - "pestphp/pest": "^3.7.4", - "pestphp/pest-plugin-type-coverage": "^3.2.3", - "pestphp/pest-plugin-watch": "^3.0.0", + "pestphp/pest": "^4.7.8", + "pestphp/pest-plugin-type-coverage": "^4.0.4", "phpstan/phpstan": "^2.1.2", "phpstan/phpstan-strict-rules": "^2.0.3", "phpstan/extension-installer": "^1.4" diff --git a/phpunit.xml b/phpunit.xml index 82f73f0..8c273ff 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,6 +1,6 @@ From 4f84214861997dafac54de93e5d9391b25988638 Mon Sep 17 00:00:00 2001 From: Marc Reichel Date: Sun, 6 Sep 2026 13:52:55 +0200 Subject: [PATCH 2/3] chore: Update Pest and PHPUnit dependencies to latest versions --- composer.json | 4 ++-- phpunit.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 7bdb588..0d9a005 100644 --- a/composer.json +++ b/composer.json @@ -30,8 +30,8 @@ }, "require-dev": { "laravel/pint": "^1.16", - "pestphp/pest": "^4.7.8", - "pestphp/pest-plugin-type-coverage": "^4.0.4", + "pestphp/pest": "^5.1.3", + "pestphp/pest-plugin-type-coverage": "^5.0.2", "phpstan/phpstan": "^2.1.2", "phpstan/phpstan-strict-rules": "^2.0.3", "phpstan/extension-installer": "^1.4" diff --git a/phpunit.xml b/phpunit.xml index 8c273ff..4bfac5b 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,6 +1,6 @@ From c29127618b36dad0b0ec4ed6d76950c7d9725e80 Mon Sep 17 00:00:00 2001 From: Marc Reichel Date: Sun, 6 Sep 2026 13:57:46 +0200 Subject: [PATCH 3/3] chore: Add Pest PHPStan plugin and update PHPStan baseline --- composer.json | 3 +- phpstan-baseline.neon | 144 ------------------------------------------ 2 files changed, 2 insertions(+), 145 deletions(-) diff --git a/composer.json b/composer.json index 0d9a005..0ab0835 100644 --- a/composer.json +++ b/composer.json @@ -34,7 +34,8 @@ "pestphp/pest-plugin-type-coverage": "^5.0.2", "phpstan/phpstan": "^2.1.2", "phpstan/phpstan-strict-rules": "^2.0.3", - "phpstan/extension-installer": "^1.4" + "phpstan/extension-installer": "^1.4", + "pestphp/pest-plugin-phpstan": "^5.2" }, "config": { "allow-plugins": { diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 1d1b842..a3c4930 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -1,151 +1,7 @@ parameters: ignoreErrors: - - - rawMessage: 'Call to method toBe() of internal class Pest\Mixins\Expectation from outside its root namespace Pest.' - identifier: method.internalClass - count: 11 - path: tests/Unit/ArrayIteratorTest.php - - - - rawMessage: 'Call to method toBeTrue() of internal class Pest\Mixins\Expectation from outside its root namespace Pest.' - identifier: method.internalClass - count: 1 - path: tests/Unit/ArrayIteratorTest.php - - - - rawMessage: 'Call to method with() of internal class Pest\PendingCalls\TestCall from outside its root namespace Pest.' - identifier: method.internalClass - count: 5 - path: tests/Unit/ArrayIteratorTest.php - - - - rawMessage: 'Call to method toBe() of internal class Pest\Mixins\Expectation from outside its root namespace Pest.' - identifier: method.internalClass - count: 26 - path: tests/Unit/ArraySectionIteratorTest.php - - - - rawMessage: 'Call to method toBeFalse() of internal class Pest\Mixins\Expectation from outside its root namespace Pest.' - identifier: method.internalClass - count: 1 - path: tests/Unit/ArraySectionIteratorTest.php - - - - rawMessage: 'Call to method toBeJson() of internal class Pest\Mixins\Expectation from outside its root namespace Pest.' - identifier: method.internalClass - count: 2 - path: tests/Unit/ArraySectionIteratorTest.php - - - - rawMessage: 'Call to method toBeTrue() of internal class Pest\Mixins\Expectation from outside its root namespace Pest.' - identifier: method.internalClass - count: 1 - path: tests/Unit/ArraySectionIteratorTest.php - - - - rawMessage: 'Call to method toHaveKeys() of internal class Pest\Mixins\Expectation from outside its root namespace Pest.' - identifier: method.internalClass - count: 1 - path: tests/Unit/ArraySectionIteratorTest.php - - - - rawMessage: 'Call to method with() of internal class Pest\PendingCalls\TestCall from outside its root namespace Pest.' - identifier: method.internalClass - count: 11 - path: tests/Unit/ArraySectionIteratorTest.php - - - - rawMessage: 'Call to method toBe() of internal class Pest\Mixins\Expectation from outside its root namespace Pest.' - identifier: method.internalClass - count: 1 - path: tests/Unit/FullTextTest.php - - - - rawMessage: 'Call to method toBeGreaterThan() of internal class Pest\Mixins\Expectation from outside its root namespace Pest.' - identifier: method.internalClass - count: 1 - path: tests/Unit/FullTextTest.php - - - - rawMessage: 'Call to method with() of internal class Pest\PendingCalls\TestCall from outside its root namespace Pest.' - identifier: method.internalClass - count: 1 - path: tests/Unit/FullTextTest.php - - - - rawMessage: 'Call to method throws() of internal class Pest\PendingCalls\TestCall from outside its root namespace Pest.' - identifier: method.internalClass - count: 1 - path: tests/Unit/JsonDecoderTest.php - - - - rawMessage: 'Call to method toBeArray() of internal class Pest\Mixins\Expectation from outside its root namespace Pest.' - identifier: method.internalClass - count: 1 - path: tests/Unit/JsonDecoderTest.php - - - - rawMessage: 'Call to method toBeFalse() of internal class Pest\Mixins\Expectation from outside its root namespace Pest.' - identifier: method.internalClass - count: 1 - path: tests/Unit/JsonDecoderTest.php - - - - rawMessage: 'Call to method toBeNull() of internal class Pest\Mixins\Expectation from outside its root namespace Pest.' - identifier: method.internalClass - count: 1 - path: tests/Unit/JsonDecoderTest.php - - - - rawMessage: 'Call to method toBeObject() of internal class Pest\Mixins\Expectation from outside its root namespace Pest.' - identifier: method.internalClass - count: 1 - path: tests/Unit/JsonDecoderTest.php - - - - rawMessage: 'Call to method toBeTrue() of internal class Pest\Mixins\Expectation from outside its root namespace Pest.' - identifier: method.internalClass - count: 1 - path: tests/Unit/JsonDecoderTest.php - - - - rawMessage: 'Call to method with() of internal class Pest\PendingCalls\TestCall from outside its root namespace Pest.' - identifier: method.internalClass - count: 6 - path: tests/Unit/JsonDecoderTest.php - - - - rawMessage: 'Call to method toBe() of internal class Pest\Mixins\Expectation from outside its root namespace Pest.' - identifier: method.internalClass - count: 8 - path: tests/Unit/StringableTest.php - - - - rawMessage: 'Call to method toBeTrue() of internal class Pest\Mixins\Expectation from outside its root namespace Pest.' - identifier: method.internalClass - count: 3 - path: tests/Unit/StringableTest.php - - rawMessage: 'Parameter #1 $string of static method Artemeon\Support\StringUtil::of() expects string, null given.' identifier: argument.type count: 1 path: tests/Unit/StringableTest.php - - - - rawMessage: 'Call to method toBe() of internal class Pest\Mixins\Expectation from outside its root namespace Pest.' - identifier: method.internalClass - count: 1 - path: tests/Unit/TimerTest.php - - - - rawMessage: 'Call to method toBeLessThan() of internal class Pest\Mixins\Expectation from outside its root namespace Pest.' - identifier: method.internalClass - count: 2 - path: tests/Unit/TimerTest.php - - - - rawMessage: 'Call to method with() of internal class Pest\PendingCalls\TestCall from outside its root namespace Pest.' - identifier: method.internalClass - count: 1 - path: tests/Unit/TimerTest.php