Skip to content

Commit 44c6bdc

Browse files
authored
Merge pull request #29 from xdevor/master
fix(Rewrite): return type of `writeArrayToPhp()` should be `string`
2 parents 6f68ccf + ef998c3 commit 44c6bdc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/DataWriter/Rewrite.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ protected function writeValueToPhp($value): string
132132
return $replaceValue;
133133
}
134134

135-
protected function writeArrayToPhp(array $array): array
135+
protected function writeArrayToPhp(array $array): string
136136
{
137137
$result = [];
138138

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

145145
return '['.implode(', ', $result).']';
146-
147-
return $result;
148146
}
149147

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

0 commit comments

Comments
 (0)