Skip to content

Commit

Permalink
relax: remove PhpdocTypesCommaSpacesFixer
Browse files Browse the repository at this point in the history
  • Loading branch information
realodix committed Aug 5, 2024
1 parent 4f81fd5 commit 93af0e5
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 11 deletions.
1 change: 0 additions & 1 deletion src/RuleSet/Sets/Relax.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ public function mainRules(): array
Fixer\PhpdocNoSuperfluousParamFixer::name() => true,
Fixer\PhpdocParamTypeFixer::name() => true,
Fixer\PhpdocSelfAccessorFixer::name() => true,
Fixer\PhpdocTypesCommaSpacesFixer::name() => true,
Fixer\PhpdocTypesTrimFixer::name() => true,

/*
Expand Down
13 changes: 13 additions & 0 deletions tests/Fixtures/Ruleset/realodixspec_actual.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,19 @@ public function comment()
//
}

/**
* Get the attributes that should be cast.
*
* @return array{user_id:'integer',is_custom:'boolean'}
*/
protected function casts(): array
{
return [
'user_id' => 'integer',
'is_custom' => 'boolean',
];
}

/**
* @param null|string|boll $a comment
* @return null|string|boll comment
Expand Down
13 changes: 13 additions & 0 deletions tests/Fixtures/Ruleset/realodixspec_expected.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,19 @@ public function comment()
//
}

/**
* Get the attributes that should be cast.
*
* @return array{user_id:'integer',is_custom:'boolean'}
*/
protected function casts(): array
{
return [
'user_id' => 'integer',
'is_custom' => 'boolean',
];
}

/**
* @param string|boll|null $a comment
* @return string|boll|null comment
Expand Down
5 changes: 0 additions & 5 deletions tests/Fixtures/Ruleset/relax-custom_actual.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ class RelaxCustom
*/
private $instance;

/**
* @var array<int,string>
*/
private $phpdocTypesCommaSpacesFixer;

/** Hello
* World!
*/
Expand Down
5 changes: 0 additions & 5 deletions tests/Fixtures/Ruleset/relax-custom_expected.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ class RelaxCustom
*/
private $instance;

/**
* @var array<int, string>
*/
private $phpdocTypesCommaSpacesFixer;

/**
* Hello
* World!
Expand Down

0 comments on commit 93af0e5

Please sign in to comment.