From 862acf1db17fae6fe37fbe6bfac85780f4604049 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Tue, 18 Jan 2022 16:01:02 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E6=94=B9=E5=90=8D"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit fdf58326 --- kiri-engine/Pool/Pool.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kiri-engine/Pool/Pool.php b/kiri-engine/Pool/Pool.php index 2e8b17fe..ebbdfeae 100644 --- a/kiri-engine/Pool/Pool.php +++ b/kiri-engine/Pool/Pool.php @@ -41,11 +41,10 @@ class Pool extends Component /** - * @param Channel $channel + * @param Channel|SplQueue $channel * @param $retain_number - * @throws Exception */ - protected function pop(Channel $channel, $retain_number): void + protected function pop(Channel|SplQueue $channel, $retain_number): void { while ($channel->length() > $retain_number) { if (Context::inCoroutine()) {