Skip to content

Commit

Permalink
refactor: fix Ftp and StreamWrapper errors
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroTroller committed Oct 23, 2023
1 parent c282e47 commit af1fda7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gaufrette/Adapter/Ftp.php
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ public function close(): void
/**
* @param array<int, string>|false $info
*/
private function isLinuxListing(array $info): bool
private function isLinuxListing(bool|array $info): bool
{
return count($info) >= 9;
}
Expand Down
1 change: 1 addition & 0 deletions src/Gaufrette/StreamWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ public function unlink(string $path): bool

/**
* @return resource|false
* @param STREAM_CAST_FOR_SELECT|STREAM_CAST_AS_STREAM $castAs
*/
public function stream_cast(int $castAs)
{
Expand Down

0 comments on commit af1fda7

Please sign in to comment.