Bug #50869
key() invoked on object
Status: | New | Start date: | 2013-08-07 | |
---|---|---|---|---|
Priority: | Could have | Due date: | ||
Assigned To: | - | % Done: | 0% |
|
Category: | - | |||
Target version: | - | |||
PHP Version: | Complexity: | |||
Has patch: | No | Affected Flow version: | Flow 2.0.0 |
Description
TYPO3\Flow\Package\Package:
.... $namespaces = $manifest->autoload->{'psr-0'}; if (count($namespaces) === 1) { $namespace = key($namespaces); } ....
key() should be called using an array as its parameter, $namespaces is a stdclass
http://www.php.net/key
I propose casting the result of the autoload method to an array before calling key()