Bug #54549

PackageManager::createPackage is incompatible to PackageManagerInterface

Added by Philipp Gampe over 1 year ago.

Status:New Start date:2013-12-21
Priority:Must have Due date:
Assigned To:- % Done:

0%

Category:-
Target version:-
PHP Version:5.5 Complexity:no-brainer
Has patch:No Affected Flow version:Git master

Description

The last parameter must be of type NULL, but is of type string. Either change the interface or set the default value inside the method instead of inside the signature.

As the parameter is supposed to be of type string, I suggest to just change the interface signature to an empty string instead of NULL - at least this is what is to be expected from the phpdoc comment.

Please note that this also fatals in PHP 5.5.7 (Fedora 19) for the CMS Core unit tests which also use this implementation.

#hhvm also chokes about this


Related issues

related to TYPO3.Flow - Bug #56409: Interface incompatibility - PackageManager Resolved 2014-02-28

Also available in: Atom PDF