From 035bf7ce283f247535e157667615b006f84e816b Mon Sep 17 00:00:00 2001 From: Dave Supplee Date: Wed, 15 Feb 2017 11:26:57 -0500 Subject: [PATCH] include null as valid data type --- src/Storage/Bucket.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. *