Fix param nullability

main
Jordi Boggiano 2 years ago
parent 8b373a1306
commit 166542f981
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC

@ -4260,6 +4260,16 @@ parameters:
count: 2
path: ../src/Composer/Repository/PathRepository.php
-
message: "#^Constructor of class Composer\\\\Repository\\\\PathRepository has an unused parameter \\$dispatcher\\.$#"
count: 1
path: ../src/Composer/Repository/PathRepository.php
-
message: "#^Constructor of class Composer\\\\Repository\\\\PathRepository has an unused parameter \\$httpDownloader\\.$#"
count: 1
path: ../src/Composer/Repository/PathRepository.php
-
message: "#^Only booleans are allowed in &&, string\\|false given on the right side\\.$#"
count: 1

@ -111,7 +111,7 @@ class PathRepository extends ArrayRepository implements ConfigurableRepositoryIn
* @param IOInterface $io
* @param Config $config
*/
public function __construct(array $repoConfig, IOInterface $io, Config $config, HttpDownloader $httpDownloader, EventDispatcher $dispatcher = null, ProcessExecutor $process = null)
public function __construct(array $repoConfig, IOInterface $io, Config $config, HttpDownloader $httpDownloader = null, EventDispatcher $dispatcher = null, ProcessExecutor $process = null)
{
if (!isset($repoConfig['url'])) {
throw new \RuntimeException('You must specify the `url` configuration for the path repository');

Loading…
Cancel
Save