Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
migration system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Jun 2025 at 16:20 UTC
Updated:
26 Jan 2026 at 20:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mero.s commentedComment #3
mero.s commentedAdded patch, please review.
Comment #4
smustgrave commentedComment #8
dcam commentedUpdates to type hints in documentation are typically classified as tasks, not bug reports. This doesn't need tests or steps to reproduce.
Comment #9
smustgrave commentedThat's not actually true wrong docs can be considered a bug.
Comment #10
benjifisherLooking at recent children of #3404246: [META] Fix strict type errors detected by phpstan, I see that they are categorized as bug reports, not tasks, so let's stick with bug report for this issue.
I agree with Comment #8 that this issue does not need tests nor steps to reproduce.
The changes in the MR look right to me. My only question is whether it is worth fixing just two
@varcomments in one file or if this change should be part of a larger issue. Is there a way to get PHPStan to find mismatches like this in bulk?Comment #11
smustgrave commentedMstrelan may know. He’s been doing a ton of work around fixing those
Comment #12
smustgrave commentedSince this is such a small change lets move it forward.
Comment #15
catchIt's tempting to try to do this with a rector rule, but my overall feeling is we need to individually review each case. e.g. there could be a different class where the property isn't initialized but should be, to an array or whatever. We could discuss that more on the meta though, maybe there's a way to automate some of it.
Either way committed/pushed this one to 11.x, thanks!