Bug #50869

key() invoked on object

Added by Jordy de Jong almost 8 years ago.

Status:
New
Priority:
Could have
Assignee:
-
Category:
-
Target version:
-
Start date:
2013-08-07
Due date:
% Done:

0%

Estimated time:
PHP Version:
Has patch:
No
Complexity:

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()

No data to display

Also available in: Atom PDF