diff --git a/src/Gaufrette/Adapter/Ftp.php b/src/Gaufrette/Adapter/Ftp.php index 3c420b29..f279efd4 100644 --- a/src/Gaufrette/Adapter/Ftp.php +++ b/src/Gaufrette/Adapter/Ftp.php @@ -561,7 +561,7 @@ public function close(): void /** * @param array|false $info */ - private function isLinuxListing(array $info): bool + private function isLinuxListing(bool|array $info): bool { return count($info) >= 9; } diff --git a/src/Gaufrette/StreamWrapper.php b/src/Gaufrette/StreamWrapper.php index d101ce93..5eb052a9 100644 --- a/src/Gaufrette/StreamWrapper.php +++ b/src/Gaufrette/StreamWrapper.php @@ -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) {