Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
getActiveMultiple()
and getCanonicalMultiple()
methods in EntityRepositoryInterface both returns arrays of EntityInterface but the returning type hinting miss the [] at the end.
Proposed resolution
Add [] after @return \Drupal\Core\Entity\EntityInterface
on lines 117 and 163.
Release notes snippet
Fix return value type hinting for getActiveMultiple() and getCanonicalMultiple() in EntityRepositoryInterface.
Comment | File | Size | Author |
---|---|---|---|
entity-repository-interface-doc.patch | 1.12 KB | jmsosso | |
Comments
Comment #2
jmsosso CreditAttribution: jmsosso at TUI commentedComment #3
SpokjeChanged version to
9.3.x
since changes land there and will be backported where "The Elders" (=Core committers) see fit.Reviewed patch, changes in Type Hinting made sense to me => RTBC
Comment #4
catchCommitted/pushed to 9.3.x and cherry-picked to 9.2.x, thanks!