Merge pull request #8775 from Ayesh/php8-func-arg-opts
PHP 8 fixes for functional optional parameters before required parameterspull/8780/head
commit
be701f8906
|
@ -70,7 +70,7 @@ class PackageEvent extends Event
|
||||||
* @param OperationInterface[] $operations
|
* @param OperationInterface[] $operations
|
||||||
* @param OperationInterface $operation
|
* @param OperationInterface $operation
|
||||||
*/
|
*/
|
||||||
public function __construct($eventName, Composer $composer, IOInterface $io, $devMode, RepositoryInterface $localRepo, array $operations = array(), OperationInterface $operation)
|
public function __construct($eventName, Composer $composer, IOInterface $io, $devMode, RepositoryInterface $localRepo, array $operations, OperationInterface $operation)
|
||||||
{
|
{
|
||||||
parent::__construct($eventName);
|
parent::__construct($eventName);
|
||||||
|
|
||||||
|
|
|
@ -742,7 +742,7 @@ class ComposerRepository extends ArrayRepository implements ConfigurableReposito
|
||||||
* @param string $name package name (must be lowercased already)
|
* @param string $name package name (must be lowercased already)
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
public function isVersionAcceptable(array $acceptableStabilities = null, array $stabilityFlags = null, $constraint = null, $name, $versionData)
|
public function isVersionAcceptable(array $acceptableStabilities, array $stabilityFlags, $constraint, $name, $versionData)
|
||||||
{
|
{
|
||||||
$versions = array($versionData['version_normalized']);
|
$versions = array($versionData['version_normalized']);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue