Closed (cannot reproduce)
Project:
Drupal core
Version:
8.0.x-dev
Component:
plugin system
Priority:
Normal
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
6 Mar 2013 at 14:00 UTC
Updated:
29 Jul 2014 at 21:59 UTC
Jump to comment: Most recent file
Comments
Comment #1
dudycz commentedI think it's ok
Comment #2
dries commentedannotatedclassdiscovery-construct-empty-root-namespaces.patch queued for re-testing.
Comment #3
dries commentedSomehow doesn't appear to apply on my local tree. May need a re-roll, but asked for a re-test to make sure.
Comment #5
podarokreroll
Comment #6
catchI don't get this one.
$root_namespaces defaults to an array, foreaching over an empty array is fine. When it's explicitly set, it should be an array too.
So what's it getting set to?
Comment #7
podarokok, I`ll try to write test for this
Comment #8
webchickUnless more details can be provided of when this happens, downgrading to normal.
Comment #9
podarokthis happens with EventSubscriber instance during changing arguments passed to __construct
working
changed to
drush cc alland gotInvalid argument supplied for foreach() in Drupal\Core\Plugin\Discovery\AnnotatedClassDiscovery->__construct()container remembered old arguments passing ((...
The trouble was fixed with
Looks like container regeneration needs deeper cleanup(and cleaning cache is not working here) when changing arguments with Bundle`s
$container->register