Skip to content

Commit 71eb96b

Browse files
committed
chore: update psalm baseline
1 parent db7f3af commit 71eb96b

File tree

2 files changed

+47
-19
lines changed

2 files changed

+47
-19
lines changed

dload.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<actions>
77
<download software="rr" version="^2.12.0" />
88
<download software="dolt" />
9-
<download software="temporal" version-path="composer.json:require.temporal/sdk" />
9+
<download software="temporal" version-path="composer.json@require.temporal/sdk" />
1010
<download software="frontend" extract-path="frontend"/>
1111
</actions>
1212
<registry overwrite="false">

psalm-baseline.xml

Lines changed: 46 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,15 @@
5555
<ArgumentTypeCoercion>
5656
<code><![CDATA[$files]]></code>
5757
</ArgumentTypeCoercion>
58-
<PossiblyFalseArgument>
59-
<code><![CDATA[$destinationPath]]></code>
60-
<code><![CDATA[$destinationPath]]></code>
61-
</PossiblyFalseArgument>
62-
<PossiblyFalseOperand>
63-
<code><![CDATA[$path]]></code>
64-
</PossiblyFalseOperand>
58+
<LessSpecificReturnStatement>
59+
<code><![CDATA[$this->configDestination->path ?? $action->extractPath ?? (string) \getcwd()]]></code>
60+
</LessSpecificReturnStatement>
61+
<MoreSpecificReturnType>
62+
<code><![CDATA[non-empty-string]]></code>
63+
</MoreSpecificReturnType>
64+
<PossiblyNullReference>
65+
<code><![CDATA[getPathname]]></code>
66+
</PossiblyNullReference>
6567
</file>
6668
<file src="src/Module/Archive/ArchiveFactory.php">
6769
<MixedPropertyTypeCoercion>
@@ -71,16 +73,44 @@
7173
<code><![CDATA[\array_unique(\array_merge($this->extensions, $extensions))]]></code>
7274
</PropertyTypeCoercion>
7375
</file>
76+
<file src="src/Module/Archive/Internal/NullArchive.php">
77+
<MoreSpecificReturnType>
78+
<code><![CDATA[\Generator<non-empty-string, \SplFileInfo, \SplFileInfo|null, void>]]></code>
79+
</MoreSpecificReturnType>
80+
</file>
81+
<file src="src/Module/Archive/Internal/PharArchive.php">
82+
<PropertyNotSetInConstructor>
83+
<code><![CDATA[PharArchive]]></code>
84+
</PropertyNotSetInConstructor>
85+
</file>
7486
<file src="src/Module/Archive/Internal/PharAwareArchive.php">
7587
<MoreSpecificReturnType>
7688
<code><![CDATA[\Generator]]></code>
7789
</MoreSpecificReturnType>
90+
<PropertyNotSetInConstructor>
91+
<code><![CDATA[$archive]]></code>
92+
</PropertyNotSetInConstructor>
93+
</file>
94+
<file src="src/Module/Archive/Internal/TarPharArchive.php">
95+
<PropertyNotSetInConstructor>
96+
<code><![CDATA[TarPharArchive]]></code>
97+
</PropertyNotSetInConstructor>
98+
</file>
99+
<file src="src/Module/Archive/Internal/ZipPharArchive.php">
100+
<PropertyNotSetInConstructor>
101+
<code><![CDATA[ZipPharArchive]]></code>
102+
</PropertyNotSetInConstructor>
78103
</file>
79104
<file src="src/Module/Common/Config/Action/Download.php">
80105
<MissingConstructor>
81106
<code><![CDATA[$software]]></code>
82107
</MissingConstructor>
83108
</file>
109+
<file src="src/Module/Common/Config/Embed/Binary.php">
110+
<MissingConstructor>
111+
<code><![CDATA[$name]]></code>
112+
</MissingConstructor>
113+
</file>
84114
<file src="src/Module/Common/Config/Embed/Repository.php">
85115
<MissingConstructor>
86116
<code><![CDATA[$uri]]></code>
@@ -94,9 +124,11 @@
94124
<file src="src/Module/Common/Internal/Injection/ConfigLoader.php">
95125
<MixedMethodCall>
96126
<code><![CDATA[new $attribute->class()]]></code>
127+
<code><![CDATA[new $attribute->class()]]></code>
97128
</MixedMethodCall>
98129
<RedundantCondition>
99130
<code><![CDATA[\assert($xml instanceof \SimpleXMLElement)]]></code>
131+
<code><![CDATA[\assert($xml instanceof \SimpleXMLElement)]]></code>
100132
</RedundantCondition>
101133
</file>
102134
<file src="src/Module/Common/Internal/ObjectContainer.php">
@@ -127,34 +159,30 @@
127159
</UndefinedMethod>
128160
</file>
129161
<file src="src/Module/Downloader/Downloader.php">
130-
<ArgumentTypeCoercion>
131-
<code><![CDATA[$dlNow]]></code>
132-
<code><![CDATA[$dlSize]]></code>
133-
</ArgumentTypeCoercion>
134162
<InternalMethod>
135163
<code><![CDATA[limit]]></code>
136164
<code><![CDATA[limit]]></code>
137165
<code><![CDATA[toArray]]></code>
138166
<code><![CDATA[toArray]]></code>
139167
<code><![CDATA[toArray]]></code>
168+
<code><![CDATA[toArray]]></code>
169+
<code><![CDATA[toArray]]></code>
170+
<code><![CDATA[toArray]]></code>
171+
<code><![CDATA[toArray]]></code>
140172
</InternalMethod>
141173
<InvalidNullableReturnType>
142-
<code><![CDATA[AssetInterface]]></code>
143174
<code><![CDATA[ReleaseInterface]]></code>
144175
</InvalidNullableReturnType>
176+
<InvalidReturnType>
177+
<code><![CDATA[AssetInterface]]></code>
178+
</InvalidReturnType>
145179
<LessSpecificReturnStatement>
146180
<code><![CDATA[$temp]]></code>
147181
<code><![CDATA[\sys_get_temp_dir()]]></code>
148182
</LessSpecificReturnStatement>
149-
<MissingClosureReturnType>
150-
<code><![CDATA[static fn(int $dlNow, int $dlSize, array $info) => ($context->onProgress)(]]></code>
151-
</MissingClosureReturnType>
152183
<MoreSpecificReturnType>
153184
<code><![CDATA[non-empty-string]]></code>
154185
</MoreSpecificReturnType>
155-
<TooManyArguments>
156-
<code><![CDATA[download]]></code>
157-
</TooManyArguments>
158186
</file>
159187
<file src="src/Module/Downloader/Internal/DownloadContext.php">
160188
<PropertyNotSetInConstructor>

0 commit comments

Comments
 (0)