1
0
Fork 0

Update PHPStan

pull/11044/head
Ondrej Mirtes 2022-08-25 17:37:49 +02:00 committed by Jordi Boggiano
parent b7a5118c4d
commit 9bb436ec28
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
5 changed files with 106 additions and 110 deletions

View File

@ -49,7 +49,7 @@
"phpstan/phpstan-phpunit": "^1.0", "phpstan/phpstan-phpunit": "^1.0",
"phpstan/phpstan-deprecation-rules": "^1", "phpstan/phpstan-deprecation-rules": "^1",
"phpstan/phpstan-strict-rules": "^1", "phpstan/phpstan-strict-rules": "^1",
"phpstan/phpstan-symfony": "^1.1" "phpstan/phpstan-symfony": "^1.2.10"
}, },
"suggest": { "suggest": {
"ext-openssl": "Enabling the openssl extension allows you to access https URLs for repositories and packages", "ext-openssl": "Enabling the openssl extension allows you to access https URLs for repositories and packages",

64
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "d3dba05c3c2010d8328f0795e69c7c8f", "content-hash": "d21e692017f2adf98ee055e98100c018",
"packages": [ "packages": [
{ {
"name": "composer/ca-bundle", "name": "composer/ca-bundle",
@ -1959,16 +1959,16 @@
"packages-dev": [ "packages-dev": [
{ {
"name": "phpstan/phpstan", "name": "phpstan/phpstan",
"version": "1.8.2", "version": "1.8.3",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/phpstan/phpstan.git", "url": "https://github.com/phpstan/phpstan.git",
"reference": "c53312ecc575caf07b0e90dee43883fdf90ca67c" "reference": "5583623b61caafebd62bc78a99533aa9d769d097"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/c53312ecc575caf07b0e90dee43883fdf90ca67c", "url": "https://api.github.com/repos/phpstan/phpstan/zipball/5583623b61caafebd62bc78a99533aa9d769d097",
"reference": "c53312ecc575caf07b0e90dee43883fdf90ca67c", "reference": "5583623b61caafebd62bc78a99533aa9d769d097",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1992,9 +1992,13 @@
"MIT" "MIT"
], ],
"description": "PHPStan - PHP Static Analysis Tool", "description": "PHPStan - PHP Static Analysis Tool",
"keywords": [
"dev",
"static analysis"
],
"support": { "support": {
"issues": "https://github.com/phpstan/phpstan/issues", "issues": "https://github.com/phpstan/phpstan/issues",
"source": "https://github.com/phpstan/phpstan/tree/1.8.2" "source": "https://github.com/phpstan/phpstan/tree/1.8.3"
}, },
"funding": [ "funding": [
{ {
@ -2005,16 +2009,12 @@
"url": "https://github.com/phpstan", "url": "https://github.com/phpstan",
"type": "github" "type": "github"
}, },
{
"url": "https://www.patreon.com/phpstan",
"type": "patreon"
},
{ {
"url": "https://tidelift.com/funding/github/packagist/phpstan/phpstan", "url": "https://tidelift.com/funding/github/packagist/phpstan/phpstan",
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2022-07-20T09:57:31+00:00" "time": "2022-09-01T15:27:34+00:00"
}, },
{ {
"name": "phpstan/phpstan-deprecation-rules", "name": "phpstan/phpstan-deprecation-rules",
@ -2120,21 +2120,21 @@
}, },
{ {
"name": "phpstan/phpstan-strict-rules", "name": "phpstan/phpstan-strict-rules",
"version": "1.3.0", "version": "1.4.3",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/phpstan/phpstan-strict-rules.git", "url": "https://github.com/phpstan/phpstan-strict-rules.git",
"reference": "543675a9be82d4befb9ca0bd8cdc9d211665037f" "reference": "431b3d6e8040075de196680cd5bc95735987b4ae"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan-strict-rules/zipball/543675a9be82d4befb9ca0bd8cdc9d211665037f", "url": "https://api.github.com/repos/phpstan/phpstan-strict-rules/zipball/431b3d6e8040075de196680cd5bc95735987b4ae",
"reference": "543675a9be82d4befb9ca0bd8cdc9d211665037f", "reference": "431b3d6e8040075de196680cd5bc95735987b4ae",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": "^7.2 || ^8.0", "php": "^7.2 || ^8.0",
"phpstan/phpstan": "^1.7.15" "phpstan/phpstan": "^1.8.3"
}, },
"require-dev": { "require-dev": {
"nikic/php-parser": "^4.13.0", "nikic/php-parser": "^4.13.0",
@ -2162,22 +2162,22 @@
"description": "Extra strict and opinionated rules for PHPStan", "description": "Extra strict and opinionated rules for PHPStan",
"support": { "support": {
"issues": "https://github.com/phpstan/phpstan-strict-rules/issues", "issues": "https://github.com/phpstan/phpstan-strict-rules/issues",
"source": "https://github.com/phpstan/phpstan-strict-rules/tree/1.3.0" "source": "https://github.com/phpstan/phpstan-strict-rules/tree/1.4.3"
}, },
"time": "2022-06-24T06:47:20+00:00" "time": "2022-08-26T15:05:46+00:00"
}, },
{ {
"name": "phpstan/phpstan-symfony", "name": "phpstan/phpstan-symfony",
"version": "1.2.8", "version": "1.2.13",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/phpstan/phpstan-symfony.git", "url": "https://github.com/phpstan/phpstan-symfony.git",
"reference": "28fe677ec3ad43eb4c0946c502535365e3040ecf" "reference": "016e441a19a2af79ca0c60920ba0d61747b4e855"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan-symfony/zipball/28fe677ec3ad43eb4c0946c502535365e3040ecf", "url": "https://api.github.com/repos/phpstan/phpstan-symfony/zipball/016e441a19a2af79ca0c60920ba0d61747b4e855",
"reference": "28fe677ec3ad43eb4c0946c502535365e3040ecf", "reference": "016e441a19a2af79ca0c60920ba0d61747b4e855",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -2195,15 +2195,15 @@
"phpstan/phpstan-strict-rules": "^1.0", "phpstan/phpstan-strict-rules": "^1.0",
"phpunit/phpunit": "^9.5", "phpunit/phpunit": "^9.5",
"psr/container": "1.0 || 1.1.1", "psr/container": "1.0 || 1.1.1",
"symfony/config": "^4.2 || ^5.0", "symfony/config": "^5.4 || ^6.1",
"symfony/console": "^4.0 || ^5.0", "symfony/console": "^5.4 || ^6.1",
"symfony/dependency-injection": "^4.0 || ^5.0", "symfony/dependency-injection": "^5.4 || ^6.1",
"symfony/form": "^4.0 || ^5.0", "symfony/form": "^5.4 || ^6.1",
"symfony/framework-bundle": "^4.4 || ^5.0", "symfony/framework-bundle": "^5.4 || ^6.1",
"symfony/http-foundation": "^5.1", "symfony/http-foundation": "^5.4 || ^6.1",
"symfony/messenger": "^4.2 || ^5.0", "symfony/messenger": "^5.4",
"symfony/polyfill-php80": "^1.24", "symfony/polyfill-php80": "^1.24",
"symfony/serializer": "^4.0 || ^5.0" "symfony/serializer": "^5.4"
}, },
"type": "phpstan-extension", "type": "phpstan-extension",
"extra": { "extra": {
@ -2233,9 +2233,9 @@
"description": "Symfony Framework extensions and rules for PHPStan", "description": "Symfony Framework extensions and rules for PHPStan",
"support": { "support": {
"issues": "https://github.com/phpstan/phpstan-symfony/issues", "issues": "https://github.com/phpstan/phpstan-symfony/issues",
"source": "https://github.com/phpstan/phpstan-symfony/tree/1.2.8" "source": "https://github.com/phpstan/phpstan-symfony/tree/1.2.13"
}, },
"time": "2022-07-20T12:02:52+00:00" "time": "2022-08-28T13:34:45+00:00"
}, },
{ {
"name": "symfony/phpunit-bridge", "name": "symfony/phpunit-bridge",

View File

@ -50,11 +50,6 @@ parameters:
count: 1 count: 1
path: ../src/Composer/Command/ShowCommand.php path: ../src/Composer/Command/ShowCommand.php
-
message: "#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, array\\{Composer\\\\Package\\\\RootPackageInterface, 'getDevRequires'\\|'getRequires'\\} given\\.$#"
count: 1
path: ../src/Composer/Command/ValidateCommand.php
- -
message: "#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{Composer\\\\Json\\\\JsonManipulator, string\\} given\\.$#" message: "#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{Composer\\\\Json\\\\JsonManipulator, string\\} given\\.$#"
count: 1 count: 1
@ -185,6 +180,11 @@ parameters:
count: 2 count: 2
path: ../src/Composer/Util/Hg.php path: ../src/Composer/Util/Hg.php
-
message: "#^Only booleans are allowed in &&, int\\<0, 2097152\\> given on the right side\\.$#"
count: 1
path: ../src/Composer/Util/Http/CurlDownloader.php
- -
message: "#^Parameter \\#1 \\$handle of function curl_close expects CurlHandle, resource given\\.$#" message: "#^Parameter \\#1 \\$handle of function curl_close expects CurlHandle, resource given\\.$#"
count: 1 count: 1
@ -236,7 +236,7 @@ parameters:
path: ../src/Composer/Util/Http/CurlDownloader.php path: ../src/Composer/Util/Http/CurlDownloader.php
- -
message: "#^Property Composer\\\\Util\\\\Http\\\\CurlDownloader\\:\\:\\$jobs \\(array\\<array\\{url\\: string, origin\\: string, attributes\\: array\\{retryAuthFailure\\: bool, redirects\\: int\\<0, max\\>, retries\\: int\\<0, max\\>, storeAuth\\: 'prompt'\\|bool\\}, options\\: array, progress\\: array, curlHandle\\: resource, filename\\: string\\|null, headerHandle\\: resource, \\.\\.\\.\\}\\>\\) does not accept non\\-empty\\-array\\<array\\{url\\: string, origin\\: string, attributes\\: array\\{retryAuthFailure\\: bool, redirects\\: int\\<0, max\\>, retries\\: int\\<0, max\\>, storeAuth\\: 'prompt'\\|bool\\}, options\\: array, progress\\: array, curlHandle\\: CurlHandle\\|resource, filename\\: string\\|null, headerHandle\\: resource, \\.\\.\\.\\}\\>\\.$#" message: "#^Property Composer\\\\Util\\\\Http\\\\CurlDownloader\\:\\:\\$jobs \\(array\\<array\\{url\\: string, origin\\: string, attributes\\: array\\{retryAuthFailure\\: bool, redirects\\: int\\<0, max\\>, retries\\: int\\<0, max\\>, storeAuth\\: 'prompt'\\|bool\\}, options\\: array, progress\\: array, curlHandle\\: resource, filename\\: string\\|null, headerHandle\\: resource, \\.\\.\\.\\}\\>\\) does not accept non\\-empty\\-array\\<array\\{url\\: string, origin\\: string, attributes\\: array\\{retryAuthFailure\\: bool, redirects\\: int\\<0, max\\>, retries\\: int\\<0, max\\>, storeAuth\\: 'prompt'\\|bool\\}, options\\: array, progress\\: array, curlHandle\\: resource, filename\\: string\\|null, headerHandle\\: resource, \\.\\.\\.\\}\\|array\\{url\\: string, origin\\: string, attributes\\: array\\{retryAuthFailure\\: bool, redirects\\: int\\<0, max\\>, retries\\: int\\<0, max\\>, storeAuth\\: 'prompt'\\|bool\\}, options\\: array, progress\\: array\\<\\('certinfo'\\|'connect_time'\\|'content_type'\\|'download_content…'\\|'filetime'\\|'header_size'\\|'http_code'\\|'http_version'\\|'local_ip'\\|'local_port'\\|'namelookup_time'\\|'pretransfer_time'\\|'primary_ip'\\|'primary_port'\\|'protocol'\\|'redirect_count'\\|'redirect_time'\\|'redirect_url'\\|'request_size'\\|'scheme'\\|'size_download'\\|'size_upload'\\|'speed_download'\\|'speed_upload'\\|'ssl_verify_result'\\|'ssl_verifyresult'\\|'starttransfer_time'\\|'total_time'\\|'upload_content…'\\|'url'\\), \\(array\\<int, array\\<string, string\\>\\>\\|float\\|int\\|string\\|null\\)\\>, curlHandle\\: CurlHandle, filename\\: string\\|null, headerHandle\\: resource, \\.\\.\\.\\}\\>\\.$#"
count: 1 count: 1
path: ../src/Composer/Util/Http/CurlDownloader.php path: ../src/Composer/Util/Http/CurlDownloader.php

View File

@ -6,7 +6,7 @@ parameters:
path: ../src/Composer/Advisory/Auditor.php path: ../src/Composer/Advisory/Auditor.php
- -
message: "#^Binary operation \"\\.\" between non\\-empty\\-string and array\\|string\\|null results in an error\\.$#" message: "#^Binary operation \"\\.\" between non\\-falsy\\-string and array\\|string\\|null results in an error\\.$#"
count: 1 count: 1
path: ../src/Composer/Autoload/AutoloadGenerator.php path: ../src/Composer/Autoload/AutoloadGenerator.php
@ -20,11 +20,6 @@ parameters:
count: 1 count: 1
path: ../src/Composer/Autoload/AutoloadGenerator.php path: ../src/Composer/Autoload/AutoloadGenerator.php
-
message: "#^Only booleans are allowed in &&, array\\<string, array\\<int\\|string, array\\<string\\>\\|int\\|string\\>\\|bool\\|string\\>\\|bool\\|string\\|null given on the left side\\.$#"
count: 1
path: ../src/Composer/Autoload/AutoloadGenerator.php
- -
message: "#^Only booleans are allowed in &&, bool\\|null given on the left side\\.$#" message: "#^Only booleans are allowed in &&, bool\\|null given on the left side\\.$#"
count: 1 count: 1
@ -510,11 +505,6 @@ parameters:
count: 1 count: 1
path: ../src/Composer/Command/InitCommand.php path: ../src/Composer/Command/InitCommand.php
-
message: "#^Binary operation \"\\.\" between 'The package name ' and non\\-empty\\-array\\|float\\|int\\<min, \\-1\\>\\|int\\<1, max\\>\\|non\\-empty\\-string\\|true results in an error\\.$#"
count: 1
path: ../src/Composer/Command/InitCommand.php
- -
message: "#^Cannot call method get\\(\\) on Symfony\\\\Component\\\\Console\\\\Helper\\\\HelperSet\\|null\\.$#" message: "#^Cannot call method get\\(\\) on Symfony\\\\Component\\\\Console\\\\Helper\\\\HelperSet\\|null\\.$#"
count: 1 count: 1
@ -556,8 +546,8 @@ parameters:
path: ../src/Composer/Command/InitCommand.php path: ../src/Composer/Command/InitCommand.php
- -
message: "#^Parameter \\#1 \\$author of method Composer\\\\Command\\\\InitCommand\\:\\:formatAuthors\\(\\) expects string, array\\|float\\|int\\<min, \\-1\\>\\|int\\<1, max\\>\\|string\\|true given\\.$#" message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#"
count: 1 count: 2
path: ../src/Composer/Command/InitCommand.php path: ../src/Composer/Command/InitCommand.php
- -
@ -566,12 +556,12 @@ parameters:
path: ../src/Composer/Command/InitCommand.php path: ../src/Composer/Command/InitCommand.php
- -
message: "#^Parameter \\#1 \\$path of function basename expects string, string\\|false given\\.$#" message: "#^Parameter \\#1 \\$options of method Composer\\\\Command\\\\InitCommand\\:\\:hasDependencies\\(\\) expects array\\<string, array\\<string\\>\\|string\\>, array\\<string, array\\<int\\|string, mixed\\>\\|stdClass\\|string\\> given\\.$#"
count: 1 count: 2
path: ../src/Composer/Command/InitCommand.php path: ../src/Composer/Command/InitCommand.php
- -
message: "#^Parameter \\#2 \\$subject of static method Composer\\\\Pcre\\\\Preg\\:\\:isMatch\\(\\) expects string, array\\|float\\|int\\<min, \\-1\\>\\|int\\<1, max\\>\\|string\\|true given\\.$#" message: "#^Parameter \\#1 \\$path of function basename expects string, string\\|false given\\.$#"
count: 1 count: 1
path: ../src/Composer/Command/InitCommand.php path: ../src/Composer/Command/InitCommand.php
@ -735,18 +725,13 @@ parameters:
count: 1 count: 1
path: ../src/Composer/Command/ShowCommand.php path: ../src/Composer/Command/ShowCommand.php
-
message: "#^Binary operation \"\\.\" between ' in ' and array\\|bool\\|float\\|int\\|string results in an error\\.$#"
count: 1
path: ../src/Composer/Command/ShowCommand.php
- -
message: "#^Binary operation \"\\.\" between '\\<info\\>latest\\</info\\>…' and array\\<string\\>\\|string results in an error\\.$#" message: "#^Binary operation \"\\.\" between '\\<info\\>latest\\</info\\>…' and array\\<string\\>\\|string results in an error\\.$#"
count: 1 count: 1
path: ../src/Composer/Command/ShowCommand.php path: ../src/Composer/Command/ShowCommand.php
- -
message: "#^Binary operation \"\\.\" between non\\-empty\\-string and array\\<string\\>\\|string results in an error\\.$#" message: "#^Binary operation \"\\.\" between non\\-falsy\\-string and array\\<string\\>\\|string results in an error\\.$#"
count: 1 count: 1
path: ../src/Composer/Command/ShowCommand.php path: ../src/Composer/Command/ShowCommand.php
@ -1120,11 +1105,6 @@ parameters:
count: 5 count: 5
path: ../src/Composer/Command/ValidateCommand.php path: ../src/Composer/Command/ValidateCommand.php
-
message: "#^Parameter \\#1 \\$function of function call_user_func expects callable\\(\\)\\: mixed, array\\{Composer\\\\Package\\\\RootPackageInterface, 'getDevRequires'\\|'getRequires'\\} given\\.$#"
count: 1
path: ../src/Composer/Command/ValidateCommand.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: 1 count: 1
@ -1185,11 +1165,6 @@ parameters:
count: 1 count: 1
path: ../src/Composer/Config.php path: ../src/Composer/Config.php
-
message: "#^Only booleans are allowed in an if condition, bool\\|string given\\.$#"
count: 1
path: ../src/Composer/Config.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: 1 count: 1
@ -1980,11 +1955,6 @@ parameters:
count: 3 count: 3
path: ../src/Composer/Downloader/HgDownloader.php path: ../src/Composer/Downloader/HgDownloader.php
-
message: "#^Call to function in_array\\(\\) with arguments 20, array\\{0\\: 10\\|20, 1\\?\\: 20\\} and true will always evaluate to true\\.$#"
count: 2
path: ../src/Composer/Downloader/PathDownloader.php
- -
message: "#^Only booleans are allowed in an if condition, array\\<string, string\\|null\\>\\|null given\\.$#" message: "#^Only booleans are allowed in an if condition, array\\<string, string\\|null\\>\\|null given\\.$#"
count: 1 count: 1
@ -2727,7 +2697,22 @@ parameters:
- -
message: "#^Only booleans are allowed in an if condition, int given\\.$#" message: "#^Only booleans are allowed in an if condition, int given\\.$#"
count: 5 count: 1
path: ../src/Composer/Installer/SuggestedPackagesReporter.php
-
message: "#^Only booleans are allowed in an if condition, int\\<0, 1\\> given\\.$#"
count: 1
path: ../src/Composer/Installer/SuggestedPackagesReporter.php
-
message: "#^Only booleans are allowed in an if condition, int\\<0, 2\\> given\\.$#"
count: 2
path: ../src/Composer/Installer/SuggestedPackagesReporter.php
-
message: "#^Only booleans are allowed in an if condition, int\\<0, 4\\> given\\.$#"
count: 1
path: ../src/Composer/Installer/SuggestedPackagesReporter.php path: ../src/Composer/Installer/SuggestedPackagesReporter.php
- -
@ -2741,7 +2726,7 @@ parameters:
path: ../src/Composer/Json/JsonFile.php path: ../src/Composer/Json/JsonFile.php
- -
message: "#^Only booleans are allowed in a ternary operator condition, int given\\.$#" message: "#^Only booleans are allowed in a ternary operator condition, int\\<0, 128\\> given\\.$#"
count: 1 count: 1
path: ../src/Composer/Json/JsonFile.php path: ../src/Composer/Json/JsonFile.php
@ -3071,7 +3056,7 @@ parameters:
path: ../src/Composer/Package/Loader/ValidatingArrayLoader.php path: ../src/Composer/Package/Loader/ValidatingArrayLoader.php
- -
message: "#^Cannot access offset 'scheme' on array\\{scheme\\?\\: string, host\\?\\: string, port\\?\\: int, user\\?\\: string, pass\\?\\: string, path\\?\\: string, query\\?\\: string, fragment\\?\\: string\\}\\|false\\.$#" message: "#^Cannot access offset 'scheme' on array\\{scheme\\?\\: string, host\\?\\: string, port\\?\\: int\\<0, 65535\\>, user\\?\\: string, pass\\?\\: string, path\\?\\: string, query\\?\\: string, fragment\\?\\: string\\}\\|false\\.$#"
count: 1 count: 1
path: ../src/Composer/Package/Loader/ValidatingArrayLoader.php path: ../src/Composer/Package/Loader/ValidatingArrayLoader.php
@ -3086,8 +3071,13 @@ parameters:
path: ../src/Composer/Package/Loader/ValidatingArrayLoader.php path: ../src/Composer/Package/Loader/ValidatingArrayLoader.php
- -
message: "#^Only booleans are allowed in &&, int given on the left side\\.$#" message: "#^Only booleans are allowed in &&, int\\<0, 1\\> given on the left side\\.$#"
count: 2 count: 1
path: ../src/Composer/Package/Loader/ValidatingArrayLoader.php
-
message: "#^Only booleans are allowed in &&, int\\<0, 2\\> given on the left side\\.$#"
count: 1
path: ../src/Composer/Package/Loader/ValidatingArrayLoader.php path: ../src/Composer/Package/Loader/ValidatingArrayLoader.php
- -
@ -3216,7 +3206,7 @@ parameters:
path: ../src/Composer/Package/Version/VersionGuesser.php path: ../src/Composer/Package/Version/VersionGuesser.php
- -
message: "#^Offset 'feature_pretty…' does not exist on array\\{version\\: non\\-empty\\-string, commit\\: string\\|null, pretty_version\\: string\\|null, feature_version\\: non\\-empty\\-string, feature_pretty_version\\?\\: string\\|null\\}\\.$#" message: "#^Offset 'feature_pretty…' does not exist on array\\{version\\: non\\-falsy\\-string, commit\\: string\\|null, pretty_version\\: string\\|null, feature_version\\: non\\-falsy\\-string, feature_pretty_version\\?\\: string\\|null\\}\\.$#"
count: 1 count: 1
path: ../src/Composer/Package/Version/VersionGuesser.php path: ../src/Composer/Package/Version/VersionGuesser.php
@ -3436,7 +3426,7 @@ parameters:
path: ../src/Composer/Repository/ArtifactRepository.php path: ../src/Composer/Repository/ArtifactRepository.php
- -
message: "#^Cannot access offset 'path' on array\\{scheme\\?\\: string, host\\?\\: string, port\\?\\: int, user\\?\\: string, pass\\?\\: string, path\\?\\: string, query\\?\\: string, fragment\\?\\: string\\}\\|false\\.$#" message: "#^Cannot access offset 'path' on array\\{scheme\\?\\: string, host\\?\\: string, port\\?\\: int\\<0, 65535\\>, user\\?\\: string, pass\\?\\: string, path\\?\\: string, query\\?\\: string, fragment\\?\\: string\\}\\|false\\.$#"
count: 1 count: 1
path: ../src/Composer/Repository/ComposerRepository.php path: ../src/Composer/Repository/ComposerRepository.php
@ -4409,7 +4399,7 @@ parameters:
path: ../src/Composer/Util/ConfigValidator.php path: ../src/Composer/Util/ConfigValidator.php
- -
message: "#^Only booleans are allowed in &&, int given on the left side\\.$#" message: "#^Only booleans are allowed in &&, int\\<0, 1\\> given on the left side\\.$#"
count: 1 count: 1
path: ../src/Composer/Util/ConfigValidator.php path: ../src/Composer/Util/ConfigValidator.php
@ -4548,9 +4538,19 @@ parameters:
count: 3 count: 3
path: ../src/Composer/Util/Http/CurlDownloader.php path: ../src/Composer/Util/Http/CurlDownloader.php
-
message: "#^Offset \\(int\\|string\\) on array\\<array\\{url\\: string, origin\\: string, attributes\\: array\\{retryAuthFailure\\: bool, redirects\\: int\\<0, max\\>, retries\\: int\\<0, max\\>, storeAuth\\: 'prompt'\\|bool\\}, options\\: array, progress\\: array, curlHandle\\: resource, filename\\: string\\|null, headerHandle\\: resource, \\.\\.\\.\\}\\> in isset\\(\\) always exists and is not nullable\\.$#"
count: 1
path: ../src/Composer/Util/Http/CurlDownloader.php
- -
message: "#^Only booleans are allowed in &&, int given on the right side\\.$#" message: "#^Only booleans are allowed in &&, int given on the right side\\.$#"
count: 2 count: 1
path: ../src/Composer/Util/Http/CurlDownloader.php
-
message: "#^Only booleans are allowed in &&, int\\<0, 65536\\> given on the right side\\.$#"
count: 1
path: ../src/Composer/Util/Http/CurlDownloader.php path: ../src/Composer/Util/Http/CurlDownloader.php
- -
@ -4684,12 +4684,12 @@ parameters:
path: ../src/Composer/Util/Http/CurlDownloader.php path: ../src/Composer/Util/Http/CurlDownloader.php
- -
message: "#^Cannot access offset 'host' on array\\{scheme\\?\\: string, host\\?\\: string, port\\?\\: int, user\\?\\: string, pass\\?\\: string, path\\?\\: string, query\\?\\: string, fragment\\?\\: string\\}\\|false\\.$#" message: "#^Cannot access offset 'host' on array\\{scheme\\?\\: string, host\\?\\: string, port\\?\\: int\\<0, 65535\\>, user\\?\\: string, pass\\?\\: string, path\\?\\: string, query\\?\\: string, fragment\\?\\: string\\}\\|false\\.$#"
count: 1 count: 1
path: ../src/Composer/Util/Http/ProxyHelper.php path: ../src/Composer/Util/Http/ProxyHelper.php
- -
message: "#^Cannot access offset 'user' on array\\{scheme\\?\\: string, host\\?\\: string, port\\?\\: int, user\\?\\: string, pass\\?\\: string, path\\?\\: string, query\\?\\: string, fragment\\?\\: string\\}\\|false\\.$#" message: "#^Cannot access offset 'user' on array\\{scheme\\?\\: string, host\\?\\: string, port\\?\\: int\\<0, 65535\\>, user\\?\\: string, pass\\?\\: string, path\\?\\: string, query\\?\\: string, fragment\\?\\: string\\}\\|false\\.$#"
count: 1 count: 1
path: ../src/Composer/Util/Http/ProxyHelper.php path: ../src/Composer/Util/Http/ProxyHelper.php
@ -4709,7 +4709,7 @@ parameters:
path: ../src/Composer/Util/Http/ProxyHelper.php path: ../src/Composer/Util/Http/ProxyHelper.php
- -
message: "#^Only booleans are allowed in a negated boolean, int\\|false\\|null given\\.$#" message: "#^Only booleans are allowed in a negated boolean, int\\<0, 65535\\>\\|false\\|null given\\.$#"
count: 1 count: 1
path: ../src/Composer/Util/Http/ProxyHelper.php path: ../src/Composer/Util/Http/ProxyHelper.php
@ -4719,7 +4719,7 @@ parameters:
path: ../src/Composer/Util/Http/ProxyHelper.php path: ../src/Composer/Util/Http/ProxyHelper.php
- -
message: "#^Parameter \\#1 \\$proxy of static method Composer\\\\Util\\\\Http\\\\ProxyHelper\\:\\:formatParsedUrl\\(\\) expects array\\{scheme\\?\\: string, host\\: string, port\\?\\: int, user\\?\\: string, pass\\?\\: string\\}, array\\{scheme\\?\\: string, host\\?\\: string, port\\?\\: int, user\\?\\: string, pass\\?\\: string, path\\?\\: string, query\\?\\: string, fragment\\?\\: string\\}\\|false given\\.$#" message: "#^Parameter \\#1 \\$proxy of static method Composer\\\\Util\\\\Http\\\\ProxyHelper\\:\\:formatParsedUrl\\(\\) expects array\\{scheme\\?\\: string, host\\: string, port\\?\\: int, user\\?\\: string, pass\\?\\: string\\}, array\\{scheme\\?\\: string, host\\?\\: string, port\\?\\: int\\<0, 65535\\>, user\\?\\: string, pass\\?\\: string, path\\?\\: string, query\\?\\: string, fragment\\?\\: string\\}\\|false given\\.$#"
count: 1 count: 1
path: ../src/Composer/Util/Http/ProxyHelper.php path: ../src/Composer/Util/Http/ProxyHelper.php
@ -4899,7 +4899,7 @@ parameters:
path: ../src/Composer/Util/NoProxyPattern.php path: ../src/Composer/Util/NoProxyPattern.php
- -
message: "#^Only booleans are allowed in a ternary operator condition, int\\|false\\|null given\\.$#" message: "#^Only booleans are allowed in a ternary operator condition, int\\<0, 65535\\>\\|false\\|null given\\.$#"
count: 1 count: 1
path: ../src/Composer/Util/NoProxyPattern.php path: ../src/Composer/Util/NoProxyPattern.php
@ -5139,7 +5139,7 @@ parameters:
path: ../src/Composer/Util/RemoteFilesystem.php path: ../src/Composer/Util/RemoteFilesystem.php
- -
message: "#^Parameter \\#1 \\$result of method Composer\\\\Util\\\\RemoteFilesystem\\:\\:decodeResult\\(\\) expects string\\|false, non\\-empty\\-string\\|true given\\.$#" message: "#^Parameter \\#1 \\$result of method Composer\\\\Util\\\\RemoteFilesystem\\:\\:decodeResult\\(\\) expects string\\|false, non\\-falsy\\-string\\|true given\\.$#"
count: 1 count: 1
path: ../src/Composer/Util/RemoteFilesystem.php path: ../src/Composer/Util/RemoteFilesystem.php
@ -5188,11 +5188,6 @@ parameters:
count: 1 count: 1
path: ../src/Composer/Util/StreamContextFactory.php path: ../src/Composer/Util/StreamContextFactory.php
-
message: "#^Method Composer\\\\Util\\\\StreamContextFactory\\:\\:initOptions\\(\\) should return array\\{http\\: array\\{header\\: array\\<string\\>, proxy\\?\\: string, request_fulluri\\: bool\\}, ssl\\?\\: array\\} but returns array\\.$#"
count: 1
path: ../src/Composer/Util/StreamContextFactory.php
- -
message: "#^Only booleans are allowed in a ternary operator condition, string\\|false given\\.$#" message: "#^Only booleans are allowed in a ternary operator condition, string\\|false given\\.$#"
count: 1 count: 1
@ -5209,7 +5204,7 @@ parameters:
path: ../src/Composer/Util/StreamContextFactory.php path: ../src/Composer/Util/StreamContextFactory.php
- -
message: "#^Cannot access offset 'user' on array\\{scheme\\?\\: string, host\\?\\: string, port\\?\\: int, user\\?\\: string, pass\\?\\: string, path\\?\\: string, query\\?\\: string, fragment\\?\\: string\\}\\|false\\.$#" message: "#^Cannot access offset 'user' on array\\{scheme\\?\\: string, host\\?\\: string, port\\?\\: int\\<0, 65535\\>, user\\?\\: string, pass\\?\\: string, path\\?\\: string, query\\?\\: string, fragment\\?\\: string\\}\\|false\\.$#"
count: 1 count: 1
path: ../src/Composer/Util/Svn.php path: ../src/Composer/Util/Svn.php
@ -5304,7 +5299,7 @@ parameters:
path: ../src/Composer/Util/TlsHelper.php path: ../src/Composer/Util/TlsHelper.php
- -
message: "#^Only booleans are allowed in an if condition, int\\|false\\|null given\\.$#" message: "#^Only booleans are allowed in an if condition, int\\<0, 65535\\>\\|false\\|null given\\.$#"
count: 1 count: 1
path: ../src/Composer/Util/Url.php path: ../src/Composer/Util/Url.php
@ -5343,6 +5338,11 @@ parameters:
count: 1 count: 1
path: ../tests/Composer/Test/AllFunctionalTest.php path: ../tests/Composer/Test/AllFunctionalTest.php
-
message: "#^Method Composer\\\\Test\\\\AllFunctionalTest\\:\\:cleanOutput\\(\\) should return string but returns string\\|false\\.$#"
count: 1
path: ../tests/Composer/Test/AllFunctionalTest.php
- -
message: "#^Only booleans are allowed in an if condition, string\\|false given\\.$#" message: "#^Only booleans are allowed in an if condition, string\\|false given\\.$#"
count: 1 count: 1
@ -5363,6 +5363,11 @@ parameters:
count: 3 count: 3
path: ../tests/Composer/Test/AllFunctionalTest.php path: ../tests/Composer/Test/AllFunctionalTest.php
-
message: "#^Parameter \\#1 \\$string of function substr expects string, string\\|false given\\.$#"
count: 1
path: ../tests/Composer/Test/AllFunctionalTest.php
- -
message: "#^Parameter \\#2 \\$subject of static method Composer\\\\Pcre\\\\Preg\\:\\:split\\(\\) expects string, string\\|false given\\.$#" message: "#^Parameter \\#2 \\$subject of static method Composer\\\\Pcre\\\\Preg\\:\\:split\\(\\) expects string, string\\|false given\\.$#"
count: 1 count: 1
@ -5428,11 +5433,6 @@ parameters:
count: 1 count: 1
path: ../tests/Composer/Test/DependencyResolver/PoolBuilderTest.php path: ../tests/Composer/Test/DependencyResolver/PoolBuilderTest.php
-
message: "#^Only booleans are allowed in &&, mixed given on the right side\\.$#"
count: 2
path: ../tests/Composer/Test/DependencyResolver/PoolBuilderTest.php
- -
message: "#^Only booleans are allowed in an if condition, int\\|false given\\.$#" message: "#^Only booleans are allowed in an if condition, int\\|false given\\.$#"
count: 2 count: 2
@ -6046,11 +6046,6 @@ parameters:
count: 1 count: 1
path: ../tests/Composer/Test/Util/TlsHelperTest.php path: ../tests/Composer/Test/Util/TlsHelperTest.php
-
message: "#^Offset 'san' does not exist on array\\{cn\\: string, san\\: array\\<string\\>\\}\\|null\\.$#"
count: 1
path: ../tests/Composer/Test/Util/TlsHelperTest.php
- -
message: "#^Only booleans are allowed in a ternary operator condition, array\\<string\\> given\\.$#" message: "#^Only booleans are allowed in a ternary operator condition, array\\<string\\> given\\.$#"
count: 1 count: 1

View File

@ -1109,9 +1109,10 @@ HEADER;
} }
foreach ((array) $loader as $prop => $value) { foreach ((array) $loader as $prop => $value) {
if ($value && 0 === strpos($prop, $prefix)) { if (!is_array($value) || \count($value) === 0 || !str_starts_with($prop, $prefix)) {
$maps[substr($prop, $prefixLen)] = $value; continue;
} }
$maps[substr($prop, $prefixLen)] = $value;
} }
foreach ($maps as $prop => $value) { foreach ($maps as $prop => $value) {