Skip to content

Commit d2ccbe7

Browse files
committed
Fix missing return types
1 parent 88ad6bd commit d2ccbe7

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

psalm-baseline.xml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,6 @@
6666
<code>! is_resource($source)</code>
6767
<code>! is_resource($stream)</code>
6868
</DocblockTypeContradiction>
69-
<MissingReturnType>
70-
<code>delete</code>
71-
<code>downloadToStream</code>
72-
<code>downloadToStreamByName</code>
73-
<code>drop</code>
74-
<code>rename</code>
75-
</MissingReturnType>
7669
<MixedArgument>
7770
<code><![CDATA[$options['revision']]]></code>
7871
<code><![CDATA[$options['revision']]]></code>

src/GridFS/Bucket.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ public function __debugInfo()
205205
* attempt to delete orphaned chunks.
206206
*
207207
* @param mixed $id File ID
208+
* @return void
208209
* @throws FileNotFoundException if no file could be selected
209210
* @throws DriverRuntimeException for other driver errors (e.g. connection errors)
210211
*/
@@ -223,6 +224,7 @@ public function delete($id)
223224
*
224225
* @param mixed $id File ID
225226
* @param resource $destination Writable Stream
227+
* @return void
226228
* @throws FileNotFoundException if no file could be selected
227229
* @throws InvalidArgumentException if $destination is not a stream
228230
* @throws StreamException if the file could not be uploaded
@@ -262,6 +264,7 @@ public function downloadToStream($id, $destination)
262264
* @param string $filename Filename
263265
* @param resource $destination Writable Stream
264266
* @param array $options Download options
267+
* @return void
265268
* @throws FileNotFoundException if no file could be selected
266269
* @throws InvalidArgumentException if $destination is not a stream
267270
* @throws StreamException if the file could not be uploaded
@@ -283,6 +286,7 @@ public function downloadToStreamByName(string $filename, $destination, array $op
283286
* Drops the files and chunks collections associated with this GridFS
284287
* bucket.
285288
*
289+
* @return void
286290
* @throws DriverRuntimeException for other driver errors (e.g. connection errors)
287291
*/
288292
public function drop()
@@ -560,6 +564,7 @@ public function openUploadStream(string $filename, array $options = [])
560564
*
561565
* @param mixed $id File ID
562566
* @param string $newFilename New filename
567+
* @return void
563568
* @throws FileNotFoundException if no file could be selected
564569
* @throws DriverRuntimeException for other driver errors (e.g. connection errors)
565570
*/

0 commit comments

Comments
 (0)