Skip to content

Commit 7cb5cb3

Browse files
committed
phpdoc_line_span: move to more compact single line
1 parent a87528d commit 7cb5cb3

File tree

6 files changed

+11
-21
lines changed

6 files changed

+11
-21
lines changed

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
"php": "~8.1.0 || ~8.2.0",
1414
"ext-mbstring": "*",
1515
"ext-tokenizer": "*",
16-
"friendsofphp/php-cs-fixer": "^3.14.4"
16+
"friendsofphp/php-cs-fixer": "^3.15.1"
1717
},
1818
"require-dev": {
19-
"phpstan/phpstan": "^1.10.1",
20-
"phpstan/phpstan-phpunit": "^1.3.7",
21-
"phpunit/phpunit": "^10.0.11",
22-
"slam/php-debug-r": "^1.7.0",
19+
"phpstan/phpstan": "^1.10.6",
20+
"phpstan/phpstan-phpunit": "^1.3.10",
21+
"phpunit/phpunit": "^10.0.16",
22+
"slam/php-debug-r": "^1.8.0",
2323
"slam/phpstan-extensions": "^6.0.0"
2424
},
2525
"autoload": {

lib/Config.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ final class Config extends PhpCsFixerConfig
6363
'php_unit_strict' => false,
6464
'php_unit_test_class_requires_covers' => false,
6565
'phpdoc_add_missing_param_annotation' => false,
66-
'phpdoc_line_span' => true,
66+
'phpdoc_line_span' => ['const' => 'single', 'property' => 'single', 'method' => 'single'],
6767
'phpdoc_tag_casing' => true,
6868
'phpdoc_to_param_type' => false,
6969
'phpdoc_to_property_type' => true,
@@ -84,9 +84,7 @@ final class Config extends PhpCsFixerConfig
8484
'use_arrow_functions' => false,
8585
];
8686

87-
/**
88-
* @param array<string, mixed> $overriddenRules
89-
*/
87+
/** @param array<string, mixed> $overriddenRules */
9088
public function __construct(array $overriddenRules = [])
9189
{
9290
parent::__construct(__NAMESPACE__);

tests/FinalAbstractPublicFixerTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ public function testFix(string $expected, ?string $input = null): void
1717
$this->doTest($expected, $input);
1818
}
1919

20-
/**
21-
* @return string[][]
22-
*/
20+
/** @return string[][] */
2321
public static function provideCases(): array
2422
{
2523
$original = '

tests/FinalInternalClassFixerTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ public function testFix(string $expected, ?string $input = null): void
1717
$this->doTest($expected, $input);
1818
}
1919

20-
/**
21-
* @return string[][]
22-
*/
20+
/** @return string[][] */
2321
public static function provideCases(): array
2422
{
2523
return [

tests/FunctionReferenceSpaceFixerTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ public function testFix(string $expected, ?string $input = null): void
1717
$this->doTest($expected, $input);
1818
}
1919

20-
/**
21-
* @return string[][]
22-
*/
20+
/** @return string[][] */
2321
public static function provideCases(): array
2422
{
2523
$same = static function (string $content): string {

tests/InlineCommentSpacerFixerTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ public function testFix(string $expected, ?string $input = null): void
2323
$this->doTest($expected, $input);
2424
}
2525

26-
/**
27-
* @return string[][]
28-
*/
26+
/** @return string[][] */
2927
public static function provideCases(): array
3028
{
3129
return [

0 commit comments

Comments
 (0)