Update baseline (1700, 94)
parent
6a11574ba6
commit
1d51f34957
|
@ -65,11 +65,6 @@ parameters:
|
||||||
count: 5
|
count: 5
|
||||||
path: ../src/Composer/Autoload/AutoloadGenerator.php
|
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\\.$#"
|
message: "#^Parameter \\#1 \\$path of function realpath expects string, string\\|false given\\.$#"
|
||||||
count: 2
|
count: 2
|
||||||
|
@ -1425,11 +1420,6 @@ parameters:
|
||||||
count: 2
|
count: 2
|
||||||
path: ../src/Composer/DependencyResolver/Solver.php
|
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\\.$#"
|
message: "#^Only booleans are allowed in &&, Composer\\\\DependencyResolver\\\\Rule\\|null given on the left side\\.$#"
|
||||||
count: 1
|
count: 1
|
||||||
|
@ -1645,6 +1635,11 @@ parameters:
|
||||||
count: 1
|
count: 1
|
||||||
path: ../src/Composer/Downloader/FileDownloader.php
|
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\\.$#"
|
message: "#^Only booleans are allowed in &&, Composer\\\\Cache\\|null given on the left side\\.$#"
|
||||||
count: 4
|
count: 4
|
||||||
|
@ -1695,11 +1690,6 @@ parameters:
|
||||||
count: 1
|
count: 1
|
||||||
path: ../src/Composer/Downloader/FileDownloader.php
|
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\\.$#"
|
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
|
||||||
count: 3
|
count: 3
|
||||||
|
@ -3345,11 +3335,6 @@ parameters:
|
||||||
count: 3
|
count: 3
|
||||||
path: ../src/Composer/Repository/FilesystemRepository.php
|
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\\.$#"
|
message: "#^Only booleans are allowed in &&, string\\|null given on the left side\\.$#"
|
||||||
count: 1
|
count: 1
|
||||||
|
|
|
@ -370,7 +370,6 @@ class FileDownloader implements DownloaderInterface, ChangeReportInterface
|
||||||
|
|
||||||
protected function getDistPath(PackageInterface $package, int $component): string
|
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);
|
return pathinfo((string) parse_url(strtr((string) $package->getDistUrl(), '\\', '/'), PHP_URL_PATH), $component);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue