Skip to content

Commit 01da863

Browse files
committed
update psalm-baseline
1 parent faf27d3 commit 01da863

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

psalm-baseline.xml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -292,15 +292,16 @@
292292
</MixedReturnStatement>
293293
</file>
294294
<file src="src/Model/SearchIndexInput.php">
295-
<DocblockTypeContradiction occurrences="1">
295+
<DocblockTypeContradiction occurrences="2">
296+
<code>! is_array($index['definition']) &amp;&amp; ! is_object($index['definition'])</code>
296297
<code>is_string($index['name'])</code>
297298
</DocblockTypeContradiction>
298299
<MixedReturnStatement occurrences="1">
299300
<code>$this-&gt;index['name']</code>
300301
</MixedReturnStatement>
301-
<RedundantConditionGivenDocblockType occurrences="1">
302-
<code>! is_array($index['definition']) &amp;&amp; ! is_object($index['definition'])</code>
303-
</RedundantConditionGivenDocblockType>
302+
<PossiblyInvalidPropertyFetch occurrences="1">
303+
<code>$index['definition']-&gt;mappings</code>
304+
</PossiblyInvalidPropertyFetch>
304305
</file>
305306
<file src="src/Operation/Aggregate.php">
306307
<MixedArgument occurrences="2">
@@ -760,9 +761,9 @@
760761
</DocblockTypeContradiction>
761762
</file>
762763
<file src="src/Operation/UpdateSearchIndex.php">
763-
<RedundantConditionGivenDocblockType occurrences="1">
764-
<code>! is_object($definition)</code>
765-
</RedundantConditionGivenDocblockType>
764+
<DocblockTypeContradiction occurrences="1">
765+
<code>! is_array($definition) &amp;&amp; ! is_object($definition)</code>
766+
</DocblockTypeContradiction>
766767
</file>
767768
<file src="src/Operation/Watch.php">
768769
<DocblockTypeContradiction occurrences="1">
@@ -828,18 +829,13 @@
828829
<code>$typeMap['fieldPaths'][$fieldPath]</code>
829830
<code>$value</code>
830831
</MixedAssignment>
831-
<MixedInferredReturnType occurrences="3">
832-
<code>array|object</code>
832+
<MixedInferredReturnType occurrences="2">
833833
<code>array|object|null</code>
834834
<code>array|object|null</code>
835835
</MixedInferredReturnType>
836-
<MixedOperand occurrences="1">
837-
<code>$type</code>
838-
</MixedOperand>
839-
<MixedReturnStatement occurrences="3">
836+
<MixedReturnStatement occurrences="2">
840837
<code>$collectionInfo['options']['encryptedFields'] ?? null</code>
841838
<code>$encryptedFieldsMap[$databaseName . '.' . $collectionName] ?? null</code>
842-
<code>toPHP(fromPHP($document), $typeMap)</code>
843839
</MixedReturnStatement>
844840
</file>
845841
</files>

0 commit comments

Comments
 (0)