From 8866202231e46b4cd2e2c5d5915e26c7a6f06643 Mon Sep 17 00:00:00 2001 From: Eirik Besteland <3kbest@gmail.com> Date: Sun, 28 Nov 2021 01:22:40 +0100 Subject: [PATCH] Adding ReturnTypeWillChange attribute to silence PHP 8.1 deprecations --- src/FtpClient/FtpClient.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/FtpClient/FtpClient.php b/src/FtpClient/FtpClient.php index 53db2dc..ac7ba26 100644 --- a/src/FtpClient/FtpClient.php +++ b/src/FtpClient/FtpClient.php @@ -553,6 +553,7 @@ public function dirSize($directory = '.', $recursive = true) * @param bool $recursive true by default * @return int */ + #[\ReturnTypeWillChange] public function count($directory = '.', $type = null, $recursive = true) { $items = (null === $type ? $this->nlist($directory, $recursive)