Skip to content

Commit

Permalink
Fix ArrayChunk and ArrayColumn mutator definitions (#1404)
Browse files Browse the repository at this point in the history
  • Loading branch information
sidz committed Nov 2, 2020
1 parent 61341cc commit d9f5e86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/Mutator/Unwrap/UnwrapArrayChunk.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,17 @@ public static function getDefinition(): ?Definition
{
return new Definition(
<<<'TXT'
Replaces an `array_column` function call with its first operand. For example:
Replaces an `array_chunk` function call with its first operand. For example:
```php
$x = array_column($array, 'id');
$x = array_chunk($array, 2);
```
Will be mutated to:
```php
$x = $array;
```
TXT
,
MutatorCategory::SEMANTIC_REDUCTION,
Expand Down
4 changes: 2 additions & 2 deletions src/Mutator/Unwrap/UnwrapArrayColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ public static function getDefinition(): ?Definition
{
return new Definition(
<<<'TXT'
Replaces an `array_chunk` function call with its first operand. For example:
Replaces an `array_column` function call with its first operand. For example:
```php
$x = array_chunk($array, 2);
$x = array_column($array, 'id');
```
Will be mutated to:
Expand Down

0 comments on commit d9f5e86

Please sign in to comment.