Skip to content

Fix remaining strict types errors #253

@millnut

Description

@millnut

With Drupal core moving towards strict types, more info we should fix the remaining errors suppressed in the phpstan baseline.

 ------ ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  Line   modules/contrib/localgov_services/modules/localgov_services_landing/src/Plugin/Field/FieldFormatter/TaxonomyVerticalList.php
 ------ ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  70     Parameter #1 $items of method Drupal\Core\Field\Plugin\Field\FieldFormatter\EntityReferenceFormatterBase::getEntitiesToView() expects Drupal\Core\Field\EntityReferenceFieldItemListInterface, Drupal\Core\Field\FieldItemListInterface given.
 ------ ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 ------ ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  Line   modules/contrib/localgov_services/modules/localgov_services_navigation/src/EntityChildRelationshipUi.php
 ------ ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  125    Call to function in_array() requires parameter #3 to be set.
  132    Parameter #1 $node of method Drupal\localgov_services_navigation\EntityChildRelationshipUi::childrenField() expects Drupal\node\NodeInterface, Drupal\Core\Entity\EntityInterface given.
 ------ ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 ------ -----------------------------------------------------------------------------------------------------------------
  Line   modules/contrib/localgov_services/modules/localgov_services_navigation/tests/src/Kernel/ChildReferencesTest.php
 ------ -----------------------------------------------------------------------------------------------------------------
  73     Call to method Drupal\KernelTests\KernelTestBase::setUp() with incorrect case: setup
  138    Call to function in_array() requires parameter #3 to be set.
  190    Call to function in_array() requires parameter #3 to be set.
 ------ -----------------------------------------------------------------------------------------------------------------

 ------ ---------------------------------------------------------------------------------------------------------------------
  Line   modules/contrib/localgov_services/modules/localgov_services_navigation/tests/src/Kernel/ParentFieldPathautoTest.php
 ------ ---------------------------------------------------------------------------------------------------------------------
  57     Call to method Drupal\KernelTests\KernelTestBase::setUp() with incorrect case: setup
 ------ ---------------------------------------------------------------------------------------------------------------------

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions