Skip to content

Commit

Permalink
Bump to PHPStan 1.12.4 and fix test (#6318)
Browse files Browse the repository at this point in the history
* Bump to PHPStan 1.12.4

* use selectFromArgs() for CallLike
  • Loading branch information
samsonasik authored Sep 20, 2024
1 parent 59958fe commit 3c50a47
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build/target-repository/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"require": {
"php": "^7.2|^8.0",
"phpstan/phpstan": "^1.12.2"
"phpstan/phpstan": "^1.12.4"
},
"autoload": {
"files": [
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"ocramius/package-versions": "^2.9",
"ondram/ci-detector": "^4.2",
"phpstan/phpdoc-parser": "^1.29",
"phpstan/phpstan": "^1.12.2",
"phpstan/phpstan": "^1.12.4",
"react/event-loop": "^1.5",
"react/promise": "^3.2",
"react/socket": "^1.15",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ public static function select(
return ParametersAcceptorSelector::selectSingle($variants);
}

return count($variants) > 1
? ParametersAcceptorSelector::selectFromArgs($scope, $node->getArgs(), $variants)
: ParametersAcceptorSelector::selectSingle($variants);
return ParametersAcceptorSelector::selectFromArgs($scope, $node->getArgs(), $variants);
}
}

0 comments on commit 3c50a47

Please sign in to comment.