The Docblock for this function lists $value as mixed, but the typehint says array. This parameter is passed to array_filter, which expects an array, and is always called with an array, so the php typehint is correct. Update the docblock to match.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2999150-2.drupal.MigrationLookupskipOnEmpty-docblock-and-typehint-mismatch.patch | 672 bytes | mikelutz |
Comments
Comment #2
mikelutzComment #3
quietone commentedI read the patch and the code and yes this change is correct. The method is only called once and $value is made an array before the call, so yes this is fine.
Thanks mikelutz!
Comment #4
alexpottCommitted and pushed 90f91f3e91 to 8.7.x and 51f35637c1 to 8.6.x. Thanks!