Fix param nullability
parent
8b373a1306
commit
166542f981
|
@ -4260,6 +4260,16 @@ parameters:
|
||||||
count: 2
|
count: 2
|
||||||
path: ../src/Composer/Repository/PathRepository.php
|
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\\.$#"
|
message: "#^Only booleans are allowed in &&, string\\|false given on the right side\\.$#"
|
||||||
count: 1
|
count: 1
|
||||||
|
|
|
@ -111,7 +111,7 @@ class PathRepository extends ArrayRepository implements ConfigurableRepositoryIn
|
||||||
* @param IOInterface $io
|
* @param IOInterface $io
|
||||||
* @param Config $config
|
* @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'])) {
|
if (!isset($repoConfig['url'])) {
|
||||||
throw new \RuntimeException('You must specify the `url` configuration for the path repository');
|
throw new \RuntimeException('You must specify the `url` configuration for the path repository');
|
||||||
|
|
Loading…
Reference in New Issue