Skip to content

Commit 95e368c

Browse files
Merge v1.x into v2.x (#1597)
2 parents b7e442a + d483c24 commit 95e368c

File tree

7 files changed

+5
-136
lines changed

7 files changed

+5
-136
lines changed

.github/actions/setup/action.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,5 @@ runs:
4949
- name: Install dependencies with Composer
5050
uses: ramsey/composer-install@3.0.0
5151
with:
52-
# Revert when psalm supports PHP 8.4
53-
# composer-options: "--no-suggest"
54-
composer-options: "--no-suggest ${{ inputs.php-version == '8.4' && '--ignore-platform-req=php+' || '' }}"
52+
composer-options: "--no-suggest"
5553
working-directory: "${{ inputs.working-directory }}"

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"phpunit/phpunit": "^10.5.35",
2424
"rector/rector": "^1.2",
2525
"squizlabs/php_codesniffer": "^3.7",
26-
"vimeo/psalm": "^5.13"
26+
"vimeo/psalm": "^6.5"
2727
},
2828
"replace": {
2929
"mongodb/builder": "*"

psalm-baseline.xml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<files psalm-version="5.26.1@d747f6500b38ac4f7dfc5edbcae6e4b637d7add0">
2+
<files psalm-version="6.5.1@3f17a6b24a2dbe543e21408c2b19108cf6a355ef">
33
<file src="examples/atlas_search.php">
44
<MixedArgument>
55
<code><![CDATA[$document['name']]]></code>
@@ -696,9 +696,6 @@
696696
<code><![CDATA[$options['writeConcern']]]></code>
697697
<code><![CDATA[$value]]></code>
698698
</MixedAssignment>
699-
<MixedInferredReturnType>
700-
<code><![CDATA[array|object|null]]></code>
701-
</MixedInferredReturnType>
702699
<MixedMethodCall>
703700
<code><![CDATA[decode]]></code>
704701
<code><![CDATA[isInTransaction]]></code>
@@ -817,9 +814,6 @@
817814
<MixedAssignment>
818815
<code><![CDATA[$this->postBatchResumeToken]]></code>
819816
</MixedAssignment>
820-
<MixedInferredReturnType>
821-
<code><![CDATA[array|object|null]]></code>
822-
</MixedInferredReturnType>
823817
<MixedPropertyFetch>
824818
<code><![CDATA[$reply->cursor->firstBatch]]></code>
825819
<code><![CDATA[$reply->cursor->postBatchResumeToken]]></code>
@@ -858,10 +852,6 @@
858852
<code><![CDATA[$typeMap['fieldPaths'][$fieldPath]]]></code>
859853
<code><![CDATA[$value]]></code>
860854
</MixedAssignment>
861-
<MixedInferredReturnType>
862-
<code><![CDATA[array|object|null]]></code>
863-
<code><![CDATA[array|object|null]]></code>
864-
</MixedInferredReturnType>
865855
<MixedReturnStatement>
866856
<code><![CDATA[$collectionInfo['options']['encryptedFields'] ?? null]]></code>
867857
<code><![CDATA[$collectionInfo['options']['encryptedFields'] ?? null]]></code>

psalm.xml.dist

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
<psalm
33
errorLevel="1"
44
errorBaseline="psalm-baseline.xml"
5+
ignoreInternalFunctionFalseReturn="true"
6+
ignoreInternalFunctionNullReturn="true"
57
resolveFromConfigFile="true"
68
findUnusedBaselineEntry="true"
79
findUnusedCode="false"
@@ -18,9 +20,6 @@
1820
</projectFiles>
1921

2022
<stubs>
21-
<file name="stubs/BSON/Document.stub.php"/>
22-
<file name="stubs/BSON/Iterator.stub.php"/>
23-
<file name="stubs/BSON/PackedArray.stub.php"/>
2423
<file name="stubs/Driver/Cursor.stub.php"/>
2524
<file name="stubs/Driver/CursorInterface.stub.php"/>
2625
<file name="stubs/Driver/WriteResult.stub.php"/>

stubs/BSON/Document.stub.php

Lines changed: 0 additions & 49 deletions
This file was deleted.

stubs/BSON/Iterator.stub.php

Lines changed: 0 additions & 29 deletions
This file was deleted.

stubs/BSON/PackedArray.stub.php

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)