diff --git a/composer.json b/composer.json index c7833ab..345882e 100644 --- a/composer.json +++ b/composer.json @@ -18,10 +18,10 @@ "symfony/yaml": "^4.0 || ^5.0 || ^6.0" }, "require-dev": { - "phpunit/phpunit": "^9.5", - "vimeo/psalm": "^4.4", - "psalm/plugin-phpunit": "^0.15.1", - "friendsofphp/php-cs-fixer": "^3.8" + "phpunit/phpunit": "^10.1", + "vimeo/psalm": "^5.9", + "psalm/plugin-phpunit": "^0.18", + "friendsofphp/php-cs-fixer": "^3.16" }, "autoload": { "psr-4": { diff --git a/phpunit.xml b/phpunit.xml index 525b6bf..3e8899b 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,16 +1,8 @@ - - - - ./tests/ - - + + + + ./tests/ + + diff --git a/src/Composer/DependencyTree.php b/src/Composer/DependencyTree.php index b8d4cf9..26c6417 100644 --- a/src/Composer/DependencyTree.php +++ b/src/Composer/DependencyTree.php @@ -26,7 +26,7 @@ public function getDependencies(bool $noDev): array $license = $this->parser->getLicenseForPackage($package['name'], $noDev) ?? ''; $dependency = new Dependency($package['name'], $license); if (isset($package['requires'])) { - /** @psalm-suppress MixedArgumentTypeCoercion */ + /** @psalm-suppress ArgumentTypeCoercion */ foreach ($this->getSubDependencies($package['requires']) as $subDependency) { $dependency->addDependency($subDependency); } @@ -52,7 +52,7 @@ private function getSubDependencies(array $subTree): array foreach ($subTree as $subTreeItem) { $subDependencies[] = $subTreeItem['name']; if (isset($subTreeItem['requires'])) { - /** @psalm-suppress MixedArgumentTypeCoercion */ + /** @psalm-suppress ArgumentTypeCoercion */ $subDependencies = array_merge($subDependencies, $this->getSubDependencies($subTreeItem['requires'])); } }