Skip to content

Commit

Permalink
fix(Rewrite): return type of writeArrayToPhp() should be string
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzhuang committed Mar 10, 2023
1 parent 6f68ccf commit ef998c3
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 ef998c3

Please sign in to comment.