diff --git a/src/Commands/Field/FieldCreateCommand.php b/src/Commands/Field/FieldCreateCommand.php index cc8041f..8256005 100644 --- a/src/Commands/Field/FieldCreateCommand.php +++ b/src/Commands/Field/FieldCreateCommand.php @@ -91,7 +91,7 @@ protected function checkFieltype($type) { // get available fieldtypes $fieldtypes = array(); foreach (\ProcessWire\wire('modules') as $module) { - if (preg_match('/^Fieldtype/', $module->name)) { + if (preg_match('/^Fieldtype/', (string)$module->name)) { $fieldtypes[] = $module->name; } }