Bug #54549

PackageManager::createPackage is incompatible to PackageManagerInterface

Added by Philipp Gampe almost 7 years ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2013-12-21
Due date:
% Done:

0%

PHP Version:
5.5
Has patch:
No
Complexity:
no-brainer

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