- Issue created by @BenStallings
phpstan reports,
------ ---------------------------------------------
Line src/ConditionalFieldsElementAlterHelper.php
------ ---------------------------------------------
140 Variable $parent might not be defined.
------ ---------------------------------------------
------ ----------------------------------------------------------------------
Line src/ConditionalFieldsFormHelper.php
------ ----------------------------------------------------------------------
346 \Drupal calls should be avoided in classes, use dependency injection
instead
359 Variable $first_field might not be defined.
362 Variable $storage might not be defined.
363 Variable $field_name might not be defined.
370 Variable $field_name might not be defined.
597 Variable $field_name might not be defined.
810 Variable $error_key_arr on left side of ?? always exists and is not
nullable.
------ ----------------------------------------------------------------------
https://git.drupalcode.org/project/conditional_fields/-/jobs/3780550
Define the variables before they are used.
make a MR
Active
4.0
Code