Skip to content

Commit

Permalink
Merge pull request #67 from 3kbest/pr81
Browse files Browse the repository at this point in the history
Adding ReturnTypeWillChange attribute to silence PHP 8.1 deprecations
  • Loading branch information
Nicolab authored Mar 22, 2022
2 parents a02f966 + 8866202 commit 9fced0e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/FtpClient/FtpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9fced0e

Please sign in to comment.