Skip to content

Commit

Permalink
Update FactoryFields.twig
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker authored May 3, 2024
1 parent cd7edd6 commit 62ce5e0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions stubs/compiled_classes/FactoryFields.twig
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
namespace markhuot\craftpest\storage;
/**
{% set type = '' %}
{% 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' %}
Expand Down

0 comments on commit 62ce5e0

Please sign in to comment.