Skip to content

Commit

Permalink
Fix param nullability
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Mar 21, 2022
1 parent 8b373a1 commit 166542f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions phpstan/baseline.neon
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Composer/Repository/PathRepository.php
Expand Up @@ -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');
Expand Down

0 comments on commit 166542f

Please sign in to comment.