Skip to content

Commit 50e070e

Browse files
authored
Improve description of TrimKeyFixer (#1022)
1 parent 2368ce6 commit 50e070e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ A class that implements the `__toString()` method must explicitly implement the
713713
```
714714

715715
#### TrimKeyFixer
716-
A string array and yield keys must be trimmed and have no double spaces.
716+
The string key of an array or generator must be trimmed and have no double spaces.
717717
```diff
718718
<?php
719719
$array = [

src/Fixer/TrimKeyFixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ final class TrimKeyFixer extends AbstractFixer
2323
public function getDefinition(): FixerDefinitionInterface
2424
{
2525
return new FixerDefinition(
26-
'A string array and yield keys must be trimmed and have no double spaces.',
26+
'The string key of an array or generator must be trimmed and have no double spaces.',
2727
[new CodeSample(<<<'PHP'
2828
<?php
2929
$array = [

0 commit comments

Comments
 (0)