- Issue created by @BenStallings
phpstan reports,
------ ------------------------------------------------------------------------------
Line src/ConditionalFieldsFormHelper.php
------ ------------------------------------------------------------------------------
346 \Drupal calls should be avoided in classes, use dependency injection instead
------ ------------------------------------------------------------------------------------ ------------------------------------------------------------------------------
Line src/Form/ConditionalFieldDeleteForm.php
------ ------------------------------------------------------------------------------
54 Unsafe usage of new static().
π‘ See:
https://phpstan.org/blog/solving-phpstan-error-unsafe-usage-of-new-static
------ ------------------------------------------------------------------------------------ ------------------------------------------------------------------------------
Line src/Form/ConditionalFieldEditForm.php
------ ------------------------------------------------------------------------------
48 Unsafe usage of new static().
π‘ See:
https://phpstan.org/blog/solving-phpstan-error-unsafe-usage-of-new-static
------ ------------------------------------------------------------------------------------ ------------------------------------------------------------------------------
Line src/Form/ConditionalFieldForm.php
------ ------------------------------------------------------------------------------
78 Unsafe usage of new static().
π‘ See:
https://phpstan.org/blog/solving-phpstan-error-unsafe-usage-of-new-static
------ ------------------------------------------------------------------------------------ -------------------------------------------------------------
Line src/Plugin/conditional_fields/handler/TextAreaFormatted.php
------ -------------------------------------------------------------
36 Undefined variable: $selectors
------ -------------------------------------------------------------
phpstan analyse conditional_fields
$instance = parent::create()
instead of re-implementing the __construct() method.Make an MR.
Active
4.0
Code