Merge pull request #8775 from Ayesh/php8-func-arg-opts

PHP 8 fixes for functional optional parameters before required parameters
main
Jordi Boggiano 4 years ago committed by GitHub
commit be701f8906
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save