From 417e22ac8997842a9fe822743400442ff4d0e637 Mon Sep 17 00:00:00 2001 From: Ben Croker <57572400+bencroker@users.noreply.github.com> Date: Mon, 1 Jul 2024 09:23:02 +0200 Subject: [PATCH] Update FactoryFields.twig --- stubs/compiled_classes/FactoryFields.twig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stubs/compiled_classes/FactoryFields.twig b/stubs/compiled_classes/FactoryFields.twig index 25e503b..f6341cc 100644 --- a/stubs/compiled_classes/FactoryFields.twig +++ b/stubs/compiled_classes/FactoryFields.twig @@ -14,9 +14,9 @@ namespace markhuot\craftpest\storage; {% endfor %} * {% for field in fields %} - {% if attribute(field, 'valueType') is defined %} + {% if craft.app.version < 5 %} {% set type = field.valueType() %} -{% elseif attribute(field, 'phpType') is defined %} +{% elseif craft.app.version > 5 %} {% set type = field.phpType() %} {% else %} {% set type = 'mixed' %}