Skip to content

Commit 1deff41

Browse files
committed
cs
1 parent 599b0e7 commit 1deff41

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Mapper/OutdatedPackageMapper.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
namespace Rector\Jack\Mapper;
66

77
use Rector\Jack\ValueObject\OutdatedPackage;
8+
use Webmozart\Assert\Assert;
89

910
final class OutdatedPackageMapper
1011
{
@@ -61,9 +62,11 @@ private function parseComposerJsonToJson(string $composerJsonFilePath): array
6162

6263
// use native functions to ease re-use by 3rd party packages
6364
$composerJsonContents = file_get_contents($composerJsonFilePath);
65+
Assert::string($composerJsonContents);
6466

6567
$composerJson = (array) json_decode($composerJsonContents, true);
6668

69+
6770
$this->cachedComposerJson[$composerJsonFilePath] = $composerJson;
6871

6972
return $composerJson;

0 commit comments

Comments
 (0)