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 4f96b5a commit 96d1261
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions stubs/compiled_classes/FactoryFields.twig
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@
namespace markhuot\craftpest\storage;
/**
{% set type = '' %}
{% set type = 'mixed' %}
{% for field in fields %}
{% if craft.app.version < 5 %}
{% set type = field.valueType() %}
{% elseif craft.app.version > 5 %}
{% set type = field.phpType() %}
{% else %}
{% set type = 'mixed' %}
{% endif %}
* @method $this {{ field.handle }}({{ field.factoryTypeHint|default('mixed $value') }}): {{ type }} Sets the {{ field.name }} custom field
{% endfor %}
Expand Down

0 comments on commit 96d1261

Please sign in to comment.