Skip to content

Commit f998f89

Browse files
author
Stefano Manfredini
committed
Reserved words as method name fix in PHP < 7
1 parent f34731e commit f998f89

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Commands/FieldsFileCreateCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public static function getFields($input, $withoutPrimaryKey)
133133
$fields[] = $properties;
134134
}
135135

136-
return FieldTransformer::array($fields, 'generic');
136+
return FieldTransformer::fieldsArray($fields, 'generic');
137137
}
138138

139139
/**

src/Support/FieldTransformer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public static function json($json, $localeGroup)
183183
*
184184
* @return array
185185
*/
186-
public static function array(array $collection, $localeGroup)
186+
public static function fieldsArray(array $collection, $localeGroup)
187187
{
188188
$transformer = new self($collection, $localeGroup);
189189

0 commit comments

Comments
 (0)