Hi,

When using

drush mb my_module --build=info

produces

Illegal offset type Base.php:325

Replicated using Drush 4.6-dev and 6.1.0.

Cheers,

Richard

Comments

siliconmeadow’s picture

StatusFileSize
new432 bytes

I traced through this and saw that the $tree array being built appeared to have the key and value pairs swapped, such that it was attempting to use an object for the key and an integer for the value. I didn't push this much harder (but will do). I'm still getting to grips with what the code is actually doing. I see this part of the code is the 'assembling' the tree, but I need to grasp how many types of trees could be assembled and how many could be built in a single build process before I'm convinced that I haven't broken something with this patch.

siliconmeadow’s picture

Status: Active » Needs review
siliconmeadow’s picture

This patch does get rid of the error, but then no longer generates the code for the module when used without the --build option.

siliconmeadow’s picture

Component: Drush support » Code
Status: Needs review » Needs work
joachim’s picture

Status: Needs work » Fixed
StatusFileSize
new385 bytes

I did a bit of digging. Turns out containingComponent() was returning an object rather than a name.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.