diff --git a/src/Storage/Bucket.php b/src/Storage/Bucket.php index 4c0c43443662..89d0af05c7e6 100644 --- a/src/Storage/Bucket.php +++ b/src/Storage/Bucket.php @@ -182,7 +182,7 @@ public function exists() * @see https://cloud.google.com/storage/docs/json_api/v1/objects/insert Objects insert API documentation. * @see https://cloud.google.com/storage/docs/encryption#customer-supplied Customer-supplied encryption keys. * - * @param string|resource|StreamInterface $data The data to be uploaded. + * @param string|resource|StreamInterface|null $data The data to be uploaded. * @param array $options [optional] { * Configuration options. * @@ -265,7 +265,7 @@ public function upload($data, array $options = []) * uploads. * @see https://cloud.google.com/storage/docs/json_api/v1/objects/insert Objects insert API documentation. * - * @param string|resource|StreamInterface $data The data to be uploaded. + * @param string|resource|StreamInterface|null $data The data to be uploaded. * @param array $options [optional] { * Configuration options. *