From 84535dc752fe2348dce280b6c10b3018873f066d Mon Sep 17 00:00:00 2001 From: Pete Date: Mon, 20 Apr 2026 10:49:30 +0100 Subject: [PATCH] Fix FieldCreateCommand.php --- src/Commands/Field/FieldCreateCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }