Skip to content

Commit

Permalink
Merge pull request #29 from xdevor/master
Browse files Browse the repository at this point in the history
fix(Rewrite): return type of `writeArrayToPhp()` should be `string`
  • Loading branch information
daftspunk committed Mar 10, 2023
2 parents 6f68ccf + ef998c3 commit 44c6bdc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/DataWriter/Rewrite.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ protected function writeValueToPhp($value): string
return $replaceValue;
}

protected function writeArrayToPhp(array $array): array
protected function writeArrayToPhp(array $array): string
{
$result = [];

Expand All @@ -143,8 +143,6 @@ protected function writeArrayToPhp(array $array): array
}

return '['.implode(', ', $result).']';

return $result;
}

protected function buildStringExpression(string $targetKey, array $arrayItems = [], string $quoteChar = "'"): string
Expand Down

0 comments on commit 44c6bdc

Please sign in to comment.