1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 17:12:51 +00:00

Upgrade PHPStan to 1.0 (#10253)

Co-authored-by: Martin Herndl <martin@herndl.org>
This commit is contained in:
Jordi Boggiano 2021-11-14 20:42:24 +01:00 committed by GitHub
parent 61b50cb7ec
commit f509c41280
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
37 changed files with 85 additions and 106 deletions

View file

@ -1045,7 +1045,7 @@ class ComposerRepository extends ArrayRepository implements ConfigurableReposito
}
/**
* @return array[]
* @return mixed[]
*/
private function loadDataFromServer()
{
@ -1067,7 +1067,7 @@ class ComposerRepository extends ArrayRepository implements ConfigurableReposito
}
/**
* @param array{providers?: array, provider-includes?: array} $data
* @param array{providers?: mixed[], provider-includes?: mixed[]} $data
*
* @return void
*/
@ -1097,9 +1097,9 @@ class ComposerRepository extends ArrayRepository implements ConfigurableReposito
}
/**
* @param array[] $data
* @param mixed[] $data
*
* @return array[]
* @return mixed[]
*/
private function loadIncludes($data)
{
@ -1144,7 +1144,7 @@ class ComposerRepository extends ArrayRepository implements ConfigurableReposito
* TODO v3 should make this private once we can drop PHP 5.3 support
* @private
*
* @param array[] $packages
* @param mixed[] $packages
* @param string|null $source
*
* @return list<CompletePackage|CompleteAliasPackage>