Skip to content

Commit

Permalink
Fix wrong docs for ArgumentRemoverRector (#758)
Browse files Browse the repository at this point in the history
The value to remove has to be enclosed as array.
The value also has to match the type. The example has a boolean `true`.
The example rule now matches that to prevent confusion.

Resolves: #6657
  • Loading branch information
DanielSiepmann committed Aug 25, 2021
1 parent aa22210 commit 991ea06
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function getRuleDefinition(): RuleDefinition
CODE_SAMPLE
,
[
self::REMOVED_ARGUMENTS => [new ArgumentRemover('ExampleClass', 'someMethod', 0, 'true')],
self::REMOVED_ARGUMENTS => [new ArgumentRemover('ExampleClass', 'someMethod', 0, [true])],
]
),
]
Expand Down

0 comments on commit 991ea06

Please sign in to comment.