Skip to content

Commit 64f44ef

Browse files
authored
Merge pull request #21 from Notanotherdotcom/patch-3
Fix FieldCreateCommand.php
2 parents 34fa29c + 84535dc commit 64f44ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/Commands/Field/FieldCreateCommand.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ protected function checkFieltype($type) {
9191
// get available fieldtypes
9292
$fieldtypes = array();
9393
foreach (\ProcessWire\wire('modules') as $module) {
94-
if (preg_match('/^Fieldtype/', $module->name)) {
94+
if (preg_match('/^Fieldtype/', (string)$module->name)) {
9595
$fieldtypes[] = $module->name;
9696
}
9797
}

0 commit comments

Comments
 (0)