Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix remaining strict types errors #253

Open
Tracked by #685
millnut opened this issue Mar 21, 2024 · 0 comments
Open
Tracked by #685

Fix remaining strict types errors #253

millnut opened this issue Mar 21, 2024 · 0 comments
Labels
good first issue Good for newcomers

Comments

@millnut
Copy link
Member

millnut commented Mar 21, 2024

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
 ------ ---------------------------------------------------------------------------------------------------------------------
@millnut millnut changed the title Strict types support Fix remaining strict types errors Aug 29, 2024
@millnut millnut added the good first issue Good for newcomers label Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant