composer/composer — pull request #1026 by bamarni (2012-08-24 10:12:02+00:00)
Title: casted requirments to array in require command

When using the require command without package parameters and entering in the interactive mode, if the specified package name isn't found, the formatRequirements from the parent command returns an stdClass, wich causes an error later because an array is expected.