Skip to content

Commit c1b9227

Browse files
committed
Configure groups option in phpdoc_separation rule
See codeigniter4/CodeIgniter4@4369d20
1 parent 13303fa commit c1b9227

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/CodeIgniter4.php

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,19 @@ public function __construct()
418418
'str',
419419
],
420420
],
421-
'phpdoc_separation' => true,
421+
'phpdoc_separation' => [
422+
'groups' => [
423+
['immutable', 'psalm-immutable'],
424+
['param', 'phpstan-param', 'psalm-param'],
425+
['phpstan-pure', 'psalm-pure'],
426+
['readonly', 'psalm-readonly'],
427+
['return', 'phpstan-return', 'psalm-return'],
428+
['template', 'phpstan-template', 'psalm-template'],
429+
['template-covariant', 'phpstan-template-covariant', 'psalm-template-covariant'],
430+
['phpstan-type', 'psalm-type'],
431+
['var', 'phpstan-var', 'psalm-var'],
432+
],
433+
],
422434
'phpdoc_single_line_var_spacing' => true,
423435
'phpdoc_summary' => false,
424436
'phpdoc_tag_casing' => ['tags' => ['inheritDoc']],

0 commit comments

Comments
 (0)