Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
},
"require": {
"php": ">=8.5",
"nikic/php-parser": "^5.4"
"nikic/php-parser": "^5.9"
},
"require-dev": {
"phpunit/phpunit": "^13.3.1",
"phpstan/phpstan": "^2.0",
"tracy/tracy": "^2.10",
"rector/rector": "^2.0"
"rector/rector": "^2.6.7"
},
"extra": {
"branch-alias": {
Expand Down
4 changes: 2 additions & 2 deletions src/Resolver/NodeExpressionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ protected function resolveExprFuncCall(Expr\FuncCall $node): mixed
$resolvedArgs = [];
foreach ($node->args as $argumentNode) {
if (!$argumentNode instanceof Node\Arg) {
throw new ReflectionException('Cannot statically resolve a variadic placeholder argument in a function call');
throw new ReflectionException('Cannot statically resolve a placeholder argument in a function call');
}
$value = $this->resolve($argumentNode->value);
// if function uses named arguments, then unpack argument name first
Expand Down Expand Up @@ -385,7 +385,7 @@ protected function resolveExprNew(Expr\New_ $node): object
$resolvedArgs = [];
foreach ($node->args as $argumentNode) {
if (!$argumentNode instanceof Node\Arg) {
throw new ReflectionException('Cannot statically resolve a variadic placeholder argument in a constructor call');
throw new ReflectionException('Cannot statically resolve a placeholder argument in a constructor call');
}
$value = $this->resolve($argumentNode->value);
// if constructor uses named arguments, then unpack argument name first
Expand Down
Loading