diff --git a/composer.json b/composer.json index 4c1dc4c..a05be84 100644 --- a/composer.json +++ b/composer.json @@ -13,13 +13,13 @@ "php": "~8.1.0 || ~8.2.0", "ext-mbstring": "*", "ext-tokenizer": "*", - "friendsofphp/php-cs-fixer": "^3.14.4" + "friendsofphp/php-cs-fixer": "^3.15.1" }, "require-dev": { - "phpstan/phpstan": "^1.10.1", - "phpstan/phpstan-phpunit": "^1.3.7", - "phpunit/phpunit": "^10.0.11", - "slam/php-debug-r": "^1.7.0", + "phpstan/phpstan": "^1.10.6", + "phpstan/phpstan-phpunit": "^1.3.10", + "phpunit/phpunit": "^10.0.16", + "slam/php-debug-r": "^1.8.0", "slam/phpstan-extensions": "^6.0.0" }, "autoload": { diff --git a/lib/Config.php b/lib/Config.php index 1ace133..4df4255 100644 --- a/lib/Config.php +++ b/lib/Config.php @@ -63,7 +63,7 @@ final class Config extends PhpCsFixerConfig 'php_unit_strict' => false, 'php_unit_test_class_requires_covers' => false, 'phpdoc_add_missing_param_annotation' => false, - 'phpdoc_line_span' => true, + 'phpdoc_line_span' => ['const' => 'single', 'property' => 'single', 'method' => 'single'], 'phpdoc_tag_casing' => true, 'phpdoc_to_param_type' => false, 'phpdoc_to_property_type' => true, @@ -84,9 +84,7 @@ final class Config extends PhpCsFixerConfig 'use_arrow_functions' => false, ]; - /** - * @param array $overriddenRules - */ + /** @param array $overriddenRules */ public function __construct(array $overriddenRules = []) { parent::__construct(__NAMESPACE__); diff --git a/tests/FinalAbstractPublicFixerTest.php b/tests/FinalAbstractPublicFixerTest.php index f5f7c2b..d127f2d 100644 --- a/tests/FinalAbstractPublicFixerTest.php +++ b/tests/FinalAbstractPublicFixerTest.php @@ -17,9 +17,7 @@ public function testFix(string $expected, ?string $input = null): void $this->doTest($expected, $input); } - /** - * @return string[][] - */ + /** @return string[][] */ public static function provideCases(): array { $original = ' diff --git a/tests/FinalInternalClassFixerTest.php b/tests/FinalInternalClassFixerTest.php index ec671fc..b12a576 100644 --- a/tests/FinalInternalClassFixerTest.php +++ b/tests/FinalInternalClassFixerTest.php @@ -17,9 +17,7 @@ public function testFix(string $expected, ?string $input = null): void $this->doTest($expected, $input); } - /** - * @return string[][] - */ + /** @return string[][] */ public static function provideCases(): array { return [ diff --git a/tests/FunctionReferenceSpaceFixerTest.php b/tests/FunctionReferenceSpaceFixerTest.php index 762a69c..33ba5e7 100644 --- a/tests/FunctionReferenceSpaceFixerTest.php +++ b/tests/FunctionReferenceSpaceFixerTest.php @@ -17,9 +17,7 @@ public function testFix(string $expected, ?string $input = null): void $this->doTest($expected, $input); } - /** - * @return string[][] - */ + /** @return string[][] */ public static function provideCases(): array { $same = static function (string $content): string { diff --git a/tests/InlineCommentSpacerFixerTest.php b/tests/InlineCommentSpacerFixerTest.php index 2407fbb..caaaed8 100644 --- a/tests/InlineCommentSpacerFixerTest.php +++ b/tests/InlineCommentSpacerFixerTest.php @@ -23,9 +23,7 @@ public function testFix(string $expected, ?string $input = null): void $this->doTest($expected, $input); } - /** - * @return string[][] - */ + /** @return string[][] */ public static function provideCases(): array { return [