diff --git a/composer.json b/composer.json index c8332b5..54055e5 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,9 @@ "pestphp/pest": "^2.0", "pestphp/pest-plugin-mock": "^2.0", "pestphp/pest-plugin-faker": "^2.0", - "phpstan/phpstan": "^1.0" + "phpstan/phpstan": "^1.0", + "phpstan/extension-installer": "^1.3", + "phpstan/phpstan-mockery": "^1.1" }, "autoload": { "psr-4": { @@ -28,13 +30,13 @@ }, "autoload-dev": { "psr-4": { - "ComplexHeart\\Test\\Domain\\Criteria\\": "tests/" + "ComplexHeart\\Domain\\Criteria\\Test\\": "tests/" } }, "scripts": { "test": "vendor/bin/pest --configuration=phpunit.xml --coverage-clover=coverage.xml --log-junit=test.xml", "test-cov": "vendor/bin/pest --configuration=phpunit.xml --coverage-html=coverage", - "analyse": "vendor/bin/phpstan analyse src --no-progress --level=8", + "analyse": "vendor/bin/phpstan analyse src tests --no-progress --level=8", "check": [ "@analyse", "@test" @@ -42,7 +44,8 @@ }, "config": { "allow-plugins": { - "pestphp/pest-plugin": true + "pestphp/pest-plugin": true, + "phpstan/extension-installer": true } } } diff --git a/src/FilterGroup.php b/src/FilterGroup.php index e5ad757..69da5a1 100644 --- a/src/FilterGroup.php +++ b/src/FilterGroup.php @@ -36,7 +36,7 @@ public static function create(Filter ...$filters): self } /** - * @param array|array $filters + * @param array|array> $filters * @return self */ public static function createFromArray(array $filters): self diff --git a/tests/Pest.php b/tests/Pest.php index 5949c61..5ef07f9 100644 --- a/tests/Pest.php +++ b/tests/Pest.php @@ -24,9 +24,9 @@ | */ -expect()->extend('toBeOne', function () { - return $this->toBe(1); -}); +//expect()->extend('toBeOne', function () { +// return $this->toBe(1); +//}); /* |-------------------------------------------------------------------------- @@ -39,7 +39,4 @@ | */ -function something() -{ - // .. -} +