Closed (fixed)
Project:
Drupal core
Version:
11.3.x-dev
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Dec 2025 at 16:46 UTC
Updated:
12 Feb 2026 at 04:06 UTC
Jump to comment: Most recent
Comments
Comment #3
mondrakeComment #4
dcam commentedIn
composer/Plugin/Scaffold/Operations/ScaffoldFileCollection.php, the array shape is applied to the docblock of the property used in the iterator. But the same isn't done incore/lib/Drupal/Core/Config/Schema/ArrayElement.php, which returns theArrayElement->elements. Is this an intentional omission or was it missed? I noticed the same thing incore/lib/Drupal/Core/Template/Attribute.phpwith thestorageproperty.Comment #5
mondrakeThanks @dcam. #4 is a miss, will address it.
Comment #6
mondrakefixed #4
Comment #7
dcam commentedThank you for considering my feedback. These changes look good to me.
Comment #8
mondrakeI think as a follow up we should file an issue to mglaman/phpstan-drupal to do what @mglaman was suggesting in #3496417-7: Fix PHPStan missingType.generics for FieldItemListInterface not specifying its type
Comment #12
longwaveBackported down to 11.3.x as a documentation fix. Doesn't apply cleanly to 10.6.x, not sure it's worth it.
Committed and pushed b419ec85d91 to main and 3fe359f6f17 to 11.x and 8b702713b46 to 11.3.x. Thanks!
Comment #17
acbramley commentedI believe this had a side effect of throwing phpstan errors that don't seem to be correct (i.e the code works fine). Upgrading from 11.3.2 to 11.3.3 started throwing a bunch of errors like
Drupal\Core\Template\Attribute does not accept string.The offending code was doing something like this:
Swapping to
$attributes->setAttributefixed it for now.