From 1b3f92124e0df9ddf5ae8cd063597c45ee39cf0d Mon Sep 17 00:00:00 2001 From: Pavel Janda Date: Tue, 19 Oct 2021 09:18:05 +0200 Subject: [PATCH] tests fix --- tests/Files/TestingPresenter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Files/TestingPresenter.php b/tests/Files/TestingPresenter.php index 1e04925a5..feb7995de 100644 --- a/tests/Files/TestingPresenter.php +++ b/tests/Files/TestingPresenter.php @@ -24,9 +24,9 @@ public function handleDoStuff(int $id): void /** * {@inheritDoc} */ - public function link(string $destination, $args = []): string + public function link(string $destination, ...$args): string { - return $destination . '?' . http_build_query($args); + return $destination . '?' . http_build_query($args[0]); }