Skip to content

Commit

Permalink
Use arguments unpacking
Browse files Browse the repository at this point in the history
  • Loading branch information
laruence committed May 13, 2022
1 parent 9992370 commit 7bdba25
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions tests/015.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,17 @@ function callback($return, $callinfo) {
}
}

Yar_Concurrent_Client::call(YAR_API_ADDRESS, "normal", array("xxx", "3.8"));
Yar_Concurrent_Client::call(YAR_API_ADDRESS, "normal", array("xxx", "3.8"));
Yar_Concurrent_Client::call(YAR_API_ADDRESS, "normal", array("xxx", "3.8"));
$arguments = array(
YAR_API_ADDRESS,
"normal",
array(
"xxx", "3.8"
)
);

Yar_Concurrent_Client::call(...$arguments);
Yar_Concurrent_Client::call(...$arguments);
Yar_Concurrent_Client::call(...$arguments);

try {
Yar_Concurrent_Client::loop("callback");
Expand Down

0 comments on commit 7bdba25

Please sign in to comment.