1
0
Fork 0

Update deps and baseline (1663, 96)

pull/11795/head
Jordi Boggiano 2024-03-19 15:13:12 +01:00
parent 61e2d24610
commit 504e6c581a
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
4 changed files with 35 additions and 87 deletions

36
composer.lock generated
View File

@ -226,16 +226,16 @@
}, },
{ {
"name": "composer/pcre", "name": "composer/pcre",
"version": "2.1.2", "version": "2.1.3",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/composer/pcre.git", "url": "https://github.com/composer/pcre.git",
"reference": "02b8774a434b1b71edd8824440ceac1e3e49ee2b" "reference": "540af382c97b83c628227d5f87cf56466d476191"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/composer/pcre/zipball/02b8774a434b1b71edd8824440ceac1e3e49ee2b", "url": "https://api.github.com/repos/composer/pcre/zipball/540af382c97b83c628227d5f87cf56466d476191",
"reference": "02b8774a434b1b71edd8824440ceac1e3e49ee2b", "reference": "540af382c97b83c628227d5f87cf56466d476191",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -277,7 +277,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/composer/pcre/issues", "issues": "https://github.com/composer/pcre/issues",
"source": "https://github.com/composer/pcre/tree/2.1.2" "source": "https://github.com/composer/pcre/tree/2.1.3"
}, },
"funding": [ "funding": [
{ {
@ -293,7 +293,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2024-03-07T14:52:56+00:00" "time": "2024-03-19T09:03:05+00:00"
}, },
{ {
"name": "composer/semver", "name": "composer/semver",
@ -2014,16 +2014,16 @@
"packages-dev": [ "packages-dev": [
{ {
"name": "phpstan/phpstan", "name": "phpstan/phpstan",
"version": "1.10.62", "version": "1.10.63",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/phpstan/phpstan.git", "url": "https://github.com/phpstan/phpstan.git",
"reference": "cd5c8a1660ed3540b211407c77abf4af193a6af9" "reference": "ad12836d9ca227301f5fb9960979574ed8628339"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/cd5c8a1660ed3540b211407c77abf4af193a6af9", "url": "https://api.github.com/repos/phpstan/phpstan/zipball/ad12836d9ca227301f5fb9960979574ed8628339",
"reference": "cd5c8a1660ed3540b211407c77abf4af193a6af9", "reference": "ad12836d9ca227301f5fb9960979574ed8628339",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -2072,7 +2072,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2024-03-13T12:27:20+00:00" "time": "2024-03-18T16:53:53+00:00"
}, },
{ {
"name": "phpstan/phpstan-deprecation-rules", "name": "phpstan/phpstan-deprecation-rules",
@ -2225,22 +2225,22 @@
}, },
{ {
"name": "phpstan/phpstan-symfony", "name": "phpstan/phpstan-symfony",
"version": "1.3.8", "version": "1.3.9",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/phpstan/phpstan-symfony.git", "url": "https://github.com/phpstan/phpstan-symfony.git",
"reference": "d8a0bc03a68d95288b6471c37d435647fbdaff1a" "reference": "a32bc86da24495025d7aafd1ba62444d4a364a98"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan-symfony/zipball/d8a0bc03a68d95288b6471c37d435647fbdaff1a", "url": "https://api.github.com/repos/phpstan/phpstan-symfony/zipball/a32bc86da24495025d7aafd1ba62444d4a364a98",
"reference": "d8a0bc03a68d95288b6471c37d435647fbdaff1a", "reference": "a32bc86da24495025d7aafd1ba62444d4a364a98",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"ext-simplexml": "*", "ext-simplexml": "*",
"php": "^7.2 || ^8.0", "php": "^7.2 || ^8.0",
"phpstan/phpstan": "^1.10.36" "phpstan/phpstan": "^1.10.62"
}, },
"conflict": { "conflict": {
"symfony/framework-bundle": "<3.0" "symfony/framework-bundle": "<3.0"
@ -2291,9 +2291,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.3.8" "source": "https://github.com/phpstan/phpstan-symfony/tree/1.3.9"
}, },
"time": "2024-03-05T16:33:08+00:00" "time": "2024-03-16T16:50:20+00:00"
}, },
{ {
"name": "symfony/phpunit-bridge", "name": "symfony/phpunit-bridge",

View File

@ -15,11 +15,6 @@ parameters:
count: 1 count: 1
path: ../src/Composer/Command/ArchiveCommand.php path: ../src/Composer/Command/ArchiveCommand.php
-
message: "#^Only booleans are allowed in an if condition, string\\|false given\\.$#"
count: 1
path: ../src/Composer/Command/ConfigCommand.php
- -
message: "#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, array\\{Composer\\\\Config\\\\JsonConfigSource, string\\} given\\.$#" message: "#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, array\\{Composer\\\\Config\\\\JsonConfigSource, string\\} given\\.$#"
count: 2 count: 2
@ -131,7 +126,7 @@ parameters:
path: ../src/Composer/Package/Archiver/PharArchiver.php path: ../src/Composer/Package/Archiver/PharArchiver.php
- -
message: "#^Parameter \\#1 \\$array of function ksort expects array, array\\<int\\|string, mixed\\>\\|string given\\.$#" message: "#^Parameter \\#1 \\$array of function ksort expects array, array\\|string given\\.$#"
count: 1 count: 1
path: ../src/Composer/Package/Dumper/ArrayDumper.php path: ../src/Composer/Package/Dumper/ArrayDumper.php

View File

@ -271,7 +271,7 @@ parameters:
path: ../src/Composer/Command/ConfigCommand.php path: ../src/Composer/Command/ConfigCommand.php
- -
message: "#^Only booleans are allowed in an if condition, string given\\.$#" message: "#^Only booleans are allowed in an if condition, string\\|false given\\.$#"
count: 1 count: 1
path: ../src/Composer/Command/ConfigCommand.php path: ../src/Composer/Command/ConfigCommand.php
@ -1135,11 +1135,6 @@ parameters:
count: 1 count: 1
path: ../src/Composer/DependencyResolver/GenericRule.php path: ../src/Composer/DependencyResolver/GenericRule.php
-
message: "#^Only booleans are allowed in &&, string\\|null given on the left side\\.$#"
count: 1
path: ../src/Composer/DependencyResolver/LockTransaction.php
- -
message: "#^Cannot access offset 'hash' on array\\|false\\.$#" message: "#^Cannot access offset 'hash' on array\\|false\\.$#"
count: 1 count: 1
@ -2385,11 +2380,6 @@ parameters:
count: 1 count: 1
path: ../src/Composer/Installer/SuggestedPackagesReporter.php path: ../src/Composer/Installer/SuggestedPackagesReporter.php
-
message: "#^Only booleans are allowed in a ternary operator condition, mixed given\\.$#"
count: 2
path: ../src/Composer/Installer/SuggestedPackagesReporter.php
- -
message: "#^Only booleans are allowed in an if condition, Composer\\\\Package\\\\PackageInterface\\|null given\\.$#" message: "#^Only booleans are allowed in an if condition, Composer\\\\Package\\\\PackageInterface\\|null given\\.$#"
count: 2 count: 2
@ -2600,28 +2590,18 @@ parameters:
count: 2 count: 2
path: ../src/Composer/Package/Dumper/ArrayDumper.php path: ../src/Composer/Package/Dumper/ArrayDumper.php
-
message: "#^Only booleans are allowed in an if condition, array\\<string, string\\> given\\.$#"
count: 1
path: ../src/Composer/Package/Dumper/ArrayDumper.php
- -
message: "#^Only booleans are allowed in an if condition, array\\<string\\> given\\.$#" message: "#^Only booleans are allowed in an if condition, array\\<string\\> given\\.$#"
count: 1 count: 1
path: ../src/Composer/Package/Dumper/ArrayDumper.php path: ../src/Composer/Package/Dumper/ArrayDumper.php
- -
message: "#^Only booleans are allowed in an if condition, string given\\.$#" message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#"
count: 1 count: 1
path: ../src/Composer/Package/Dumper/ArrayDumper.php path: ../src/Composer/Package/Dumper/ArrayDumper.php
- -
message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" message: "#^Parameter \\#1 \\$array_arg of function ksort expects array, array\\|string given\\.$#"
count: 4
path: ../src/Composer/Package/Dumper/ArrayDumper.php
-
message: "#^Parameter \\#1 \\$array_arg of function ksort expects array, array\\<int\\|string, mixed\\>\\|string given\\.$#"
count: 1 count: 1
path: ../src/Composer/Package/Dumper/ArrayDumper.php path: ../src/Composer/Package/Dumper/ArrayDumper.php
@ -2705,21 +2685,6 @@ parameters:
count: 2 count: 2
path: ../src/Composer/Package/Loader/RootPackageLoader.php path: ../src/Composer/Package/Loader/RootPackageLoader.php
-
message: "#^Parameter \\#1 \\$requires of method Composer\\\\Package\\\\Loader\\\\RootPackageLoader\\:\\:extractAliases\\(\\) expects array\\<string, string\\>, array\\<int\\|string, mixed\\> given\\.$#"
count: 1
path: ../src/Composer/Package/Loader/RootPackageLoader.php
-
message: "#^Parameter \\#1 \\$requires of static method Composer\\\\Package\\\\Loader\\\\RootPackageLoader\\:\\:extractReferences\\(\\) expects array\\<string, string\\>, array\\<int\\|string, mixed\\> given\\.$#"
count: 1
path: ../src/Composer/Package/Loader/RootPackageLoader.php
-
message: "#^Parameter \\#1 \\$requires of static method Composer\\\\Package\\\\Loader\\\\RootPackageLoader\\:\\:extractStabilityFlags\\(\\) expects array\\<string, string\\>, array\\<int\\|string, mixed\\> given\\.$#"
count: 1
path: ../src/Composer/Package/Loader/RootPackageLoader.php
- -
message: "#^Parameter \\#2 \\$class \\(class\\-string\\<Composer\\\\Package\\\\RootPackage\\>\\) of method Composer\\\\Package\\\\Loader\\\\RootPackageLoader\\:\\:load\\(\\) should be contravariant with parameter \\$class \\(class\\-string\\<Composer\\\\Package\\\\CompletePackage\\>\\) of method Composer\\\\Package\\\\Loader\\\\ArrayLoader\\:\\:load\\(\\)$#" message: "#^Parameter \\#2 \\$class \\(class\\-string\\<Composer\\\\Package\\\\RootPackage\\>\\) of method Composer\\\\Package\\\\Loader\\\\RootPackageLoader\\:\\:load\\(\\) should be contravariant with parameter \\$class \\(class\\-string\\<Composer\\\\Package\\\\CompletePackage\\>\\) of method Composer\\\\Package\\\\Loader\\\\ArrayLoader\\:\\:load\\(\\)$#"
count: 1 count: 1
@ -3090,16 +3055,6 @@ parameters:
count: 1 count: 1
path: ../src/Composer/Repository/ComposerRepository.php path: ../src/Composer/Repository/ComposerRepository.php
-
message: "#^Method Composer\\\\Repository\\\\ComposerRepository\\:\\:getProviders\\(\\) should return array\\<string, array\\{name\\: string, description\\: string, type\\: string\\}\\> but returns array\\<int\\|string, mixed\\>\\.$#"
count: 1
path: ../src/Composer/Repository/ComposerRepository.php
-
message: "#^Method Composer\\\\Repository\\\\ComposerRepository\\:\\:whatProvides\\(\\) should return array\\<string, Composer\\\\Package\\\\BasePackage\\> but returns array\\<int\\|string, Composer\\\\Package\\\\CompleteAliasPackage\\|Composer\\\\Package\\\\CompletePackage\\>\\.$#"
count: 1
path: ../src/Composer/Repository/ComposerRepository.php
- -
message: "#^Only booleans are allowed in &&, Composer\\\\Semver\\\\Constraint\\\\ConstraintInterface\\|null given on the left side\\.$#" message: "#^Only booleans are allowed in &&, Composer\\\\Semver\\\\Constraint\\\\ConstraintInterface\\|null given on the left side\\.$#"
count: 1 count: 1
@ -4473,11 +4428,6 @@ parameters:
count: 1 count: 1
path: ../src/Composer/Util/NoProxyPattern.php path: ../src/Composer/Util/NoProxyPattern.php
-
message: "#^Method Composer\\\\Util\\\\NoProxyPattern\\:\\:ipCheckData\\(\\) never assigns null to &\\$ipdata so it can be removed from the by\\-ref type\\.$#"
count: 1
path: ../src/Composer/Util/NoProxyPattern.php
- -
message: "#^Only booleans are allowed in a negated boolean, bool\\|stdClass given\\.$#" message: "#^Only booleans are allowed in a negated boolean, bool\\|stdClass given\\.$#"
count: 1 count: 1

View File

@ -44,11 +44,11 @@ class ArrayDumper
$data['version'] = $package->getPrettyVersion(); $data['version'] = $package->getPrettyVersion();
$data['version_normalized'] = $package->getVersion(); $data['version_normalized'] = $package->getVersion();
if ($package->getTargetDir()) { if ($package->getTargetDir() !== null) {
$data['target-dir'] = $package->getTargetDir(); $data['target-dir'] = $package->getTargetDir();
} }
if ($package->getSourceType()) { if ($package->getSourceType() !== null) {
$data['source']['type'] = $package->getSourceType(); $data['source']['type'] = $package->getSourceType();
$data['source']['url'] = $package->getSourceUrl(); $data['source']['url'] = $package->getSourceUrl();
if (null !== ($value = $package->getSourceReference())) { if (null !== ($value = $package->getSourceReference())) {
@ -59,7 +59,7 @@ class ArrayDumper
} }
} }
if ($package->getDistType()) { if ($package->getDistType() !== null) {
$data['dist']['type'] = $package->getDistType(); $data['dist']['type'] = $package->getDistType();
$data['dist']['url'] = $package->getDistUrl(); $data['dist']['url'] = $package->getDistUrl();
if (null !== ($value = $package->getDistReference())) { if (null !== ($value = $package->getDistReference())) {
@ -74,15 +74,18 @@ class ArrayDumper
} }
foreach (BasePackage::$supportedLinkTypes as $type => $opts) { foreach (BasePackage::$supportedLinkTypes as $type => $opts) {
if ($links = $package->{'get'.ucfirst($opts['method'])}()) { $links = $package->{'get'.ucfirst($opts['method'])}();
if (\count($links) === 0) {
continue;
}
foreach ($links as $link) { foreach ($links as $link) {
$data[$type][$link->getTarget()] = $link->getPrettyConstraint(); $data[$type][$link->getTarget()] = $link->getPrettyConstraint();
} }
ksort($data[$type]); ksort($data[$type]);
} }
}
if ($packages = $package->getSuggests()) { $packages = $package->getSuggests();
if (\count($packages) > 0) {
ksort($packages); ksort($packages);
$data['suggest'] = $packages; $data['suggest'] = $packages;
} }
@ -130,7 +133,7 @@ class ArrayDumper
if ($package instanceof RootPackageInterface) { if ($package instanceof RootPackageInterface) {
$minimumStability = $package->getMinimumStability(); $minimumStability = $package->getMinimumStability();
if ($minimumStability) { if ($minimumStability !== '') {
$data['minimum-stability'] = $minimumStability; $data['minimum-stability'] = $minimumStability;
} }
} }