Skip to content

Commit 8f077b5

Browse files
committed
Fix psalm-param not supported by phpcbf
1 parent ca82a56 commit 8f077b5

File tree

2 files changed

+2
-18
lines changed

2 files changed

+2
-18
lines changed

psalm-baseline.xml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -88,22 +88,6 @@
8888
<code><![CDATA[$this->file->length]]></code>
8989
</MixedArgument>
9090
</file>
91-
<file src="src/GridFS/StreamWrapper.php">
92-
<MixedArgument>
93-
<code><![CDATA[$context[$this->protocol]['collectionWrapper']]]></code>
94-
<code><![CDATA[$context[$this->protocol]['collectionWrapper']]]></code>
95-
<code><![CDATA[$context[$this->protocol]['file']]]></code>
96-
<code><![CDATA[$context[$this->protocol]['filename']]]></code>
97-
<code><![CDATA[$context[$this->protocol]['options']]]></code>
98-
</MixedArgument>
99-
<MixedArrayAccess>
100-
<code><![CDATA[$context[$this->protocol]['collectionWrapper']]]></code>
101-
<code><![CDATA[$context[$this->protocol]['collectionWrapper']]]></code>
102-
<code><![CDATA[$context[$this->protocol]['file']]]></code>
103-
<code><![CDATA[$context[$this->protocol]['filename']]]></code>
104-
<code><![CDATA[$context[$this->protocol]['options']]]></code>
105-
</MixedArrayAccess>
106-
</file>
10791
<file src="src/Model/BSONArray.php">
10892
<MixedAssignment>
10993
<code>$this[$key]</code>

src/GridFS/StreamWrapper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ private function parseProtocol(string $path): string
341341
/**
342342
* Initialize the internal stream for reading.
343343
*
344-
* @param array{collectionWrapper: CollectionWrapper, file: object, ...} $contextOptions
344+
* @psalm-param array{collectionWrapper: CollectionWrapper, file: object, ...} $contextOptions
345345
* @see StreamWrapper::stream_open()
346346
*/
347347
private function initReadableStream(array $contextOptions): bool
@@ -357,7 +357,7 @@ private function initReadableStream(array $contextOptions): bool
357357
/**
358358
* Initialize the internal stream for writing.
359359
*
360-
* @param array{collectionWrapper: CollectionWrapper, filename: string, options: array, ...} $contextOptions
360+
* @psalm-param array{collectionWrapper: CollectionWrapper, filename: string, options: array, ...} $contextOptions
361361
* @see StreamWrapper::stream_open()
362362
*/
363363
private function initWritableStream(array $contextOptions): bool

0 commit comments

Comments
 (0)