1
0
Fork 0

Update baseline (1700, 94)

pull/11497/head
Jordi Boggiano 2023-06-07 08:50:57 +02:00
parent 6a11574ba6
commit 1d51f34957
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
2 changed files with 5 additions and 21 deletions

View File

@ -65,11 +65,6 @@ parameters:
count: 5
path: ../src/Composer/Autoload/AutoloadGenerator.php
-
message: "#^Parameter \\#1 \\$packageMap of method Composer\\\\Autoload\\\\AutoloadGenerator\\:\\:parseAutoloadsType\\(\\) expects array\\<int, array\\{Composer\\\\Package\\\\PackageInterface, string\\}\\>, non\\-empty\\-array\\<int, array\\{Composer\\\\Package\\\\PackageInterface, string\\}\\|null\\> given\\.$#"
count: 5
path: ../src/Composer/Autoload/AutoloadGenerator.php
-
message: "#^Parameter \\#1 \\$path of function realpath expects string, string\\|false given\\.$#"
count: 2
@ -1425,11 +1420,6 @@ parameters:
count: 2
path: ../src/Composer/DependencyResolver/Solver.php
-
message: "#^Method Composer\\\\DependencyResolver\\\\Solver\\:\\:enableDisableLearnedRules\\(\\) is unused\\.$#"
count: 1
path: ../src/Composer/DependencyResolver/Solver.php
-
message: "#^Only booleans are allowed in &&, Composer\\\\DependencyResolver\\\\Rule\\|null given on the left side\\.$#"
count: 1
@ -1645,6 +1635,11 @@ parameters:
count: 1
path: ../src/Composer/Downloader/FileDownloader.php
-
message: "#^Method Composer\\\\Downloader\\\\FileDownloader\\:\\:getDistPath\\(\\) should return string but returns array\\<string, string\\>\\|string\\.$#"
count: 1
path: ../src/Composer/Downloader/FileDownloader.php
-
message: "#^Only booleans are allowed in &&, Composer\\\\Cache\\|null given on the left side\\.$#"
count: 4
@ -1695,11 +1690,6 @@ parameters:
count: 1
path: ../src/Composer/Downloader/FileDownloader.php
-
message: "#^Parameter \\#1 \\$path of function pathinfo expects string, string\\|false\\|null given\\.$#"
count: 2
path: ../src/Composer/Downloader/FileDownloader.php
-
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
count: 3
@ -3345,11 +3335,6 @@ parameters:
count: 3
path: ../src/Composer/Repository/FilesystemRepository.php
-
message: "#^Strict comparison using \\!\\=\\= between null and non\\-empty\\-string will always evaluate to true\\.$#"
count: 1
path: ../src/Composer/Repository/FilesystemRepository.php
-
message: "#^Only booleans are allowed in &&, string\\|null given on the left side\\.$#"
count: 1

View File

@ -370,7 +370,6 @@ class FileDownloader implements DownloaderInterface, ChangeReportInterface
protected function getDistPath(PackageInterface $package, int $component): string
{
// @phpstan-ignore-next-line
return pathinfo((string) parse_url(strtr((string) $package->getDistUrl(), '\\', '/'), PHP_URL_PATH), $component);
}