Skip to content

Commit 566a75e

Browse files
committed
chore: fix psalm issues
1 parent 026a915 commit 566a75e

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

psalm-baseline.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,12 +219,8 @@
219219
<code><![CDATA[$softwareArray]]></code>
220220
</MixedArgument>
221221
<MixedAssignment>
222-
<code><![CDATA[$json]]></code>
223222
<code><![CDATA[$softwareArray]]></code>
224223
</MixedAssignment>
225-
<PossiblyFalseArgument>
226-
<code><![CDATA[\file_get_contents(Info::ROOT_DIR . '/resources/software.json')]]></code>
227-
</PossiblyFalseArgument>
228224
</file>
229225
<file src="src/Module/Repository/Collection/CompositeRepository.php">
230226
<InvalidArgument>

src/Module/Downloader/SoftwareCollection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ public function count(): int
8787
*/
8888
private function loadDefaultRegistry(): void
8989
{
90-
$json = \json_decode(
91-
\file_get_contents(Info::ROOT_DIR . '/resources/software.json'),
90+
$json = (array) \json_decode(
91+
(string) \file_get_contents(Info::ROOT_DIR . '/resources/software.json'),
9292
true,
9393
16,
9494
JSON_THROW_ON_ERROR,

0 commit comments

Comments
 (0)