Skip to content

Commit

Permalink
Ignore missing ftp connection class
Browse files Browse the repository at this point in the history
  • Loading branch information
frankdejonge committed Jan 29, 2022
1 parent dc3042d commit 40c7e73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ parameters:
- src/PhpseclibV2
- src/PhpseclibV3
ignoreErrors:
- '#invalid typehint type FTP\\Connection#'
- '#FTP\\Connection not found#'
- '#unknown class FTP\\Connection#'
- '#Call to function iterator_to_array\(\) on a separate line has no effect\.#'
Expand Down
2 changes: 1 addition & 1 deletion src/Ftp/FtpAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ private function hasFtpConnection(): bool
}

/**
* @param resource|\FTP\Connection$connection
* @param resource|\FTP\Connection $connection
*/
private function resolveConnectionRoot($connection): string
{
Expand Down

0 comments on commit 40c7e73

Please sign in to comment.