Skip to content

Commit

Permalink
Merge pull request #27 from bencroker/patch-1
Browse files Browse the repository at this point in the history
Fixes failing attribute defined test (again)
  • Loading branch information
markhuot authored Sep 30, 2024
2 parents 62ac020 + b5a79bf commit c1a784e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stubs/compiled_classes/FactoryFields.twig
Original file line number Diff line number Diff line change
Expand Up @@ -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' %}
Expand Down

0 comments on commit c1a784e

Please sign in to comment.