diff --git a/composer.json b/composer.json index d8a9f3a5..1a64d7a9 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,7 @@ "marcj/topsort": "^2.0", "symfony/var-dumper": "^8.0", "symfony/yaml": "^8.0", - "swoole/phpx": "~2.1.3" + "swoole/phpx": "~2.1.5" }, "require-dev": { "phpunit/phpunit": "^10.4", diff --git a/tests/aot/dynamic_call/method-002.phpt b/tests/aot/dynamic_call/method-002.phpt new file mode 100644 index 00000000..20101f1e --- /dev/null +++ b/tests/aot/dynamic_call/method-002.phpt @@ -0,0 +1,32 @@ +--TEST-- +named args +--FILE-- +{$array['handler']}([2026, 'ae86', 'bmw']); + } +} + +function main() +{ + $object = new FooObject; + $object->run(); +} +?> +--EXPECT-- +array(3) { + [0]=> + int(2026) + [1]=> + string(4) "ae86" + [2]=> + string(3) "bmw" +}