Skip to content

Commit 61aa8f5

Browse files
authored
[BUGFIX] Prevent warnings (#872)
1 parent c01d1f2 commit 61aa8f5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/typo3-version-handling/src/Packagist/PackagistService.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,12 @@ public function getComposerInfoFromJson(array $composerJsonArray, string $packag
5959
$issuesUrl = $this->getString(is_array($support) ? ($support['issues'] ?? '') : '');
6060
$sourceUrl = $this->getString(is_array($support) ? ($support['source'] ?? '') : '');
6161
$extensionKey = '';
62-
if (is_array($composerJsonArray['extra']) && $composerJsonArray['extra']['typo3/cms']) {
62+
if (
63+
isset($composerJsonArray['extra'])
64+
&& is_array($composerJsonArray['extra'])
65+
&& isset($composerJsonArray['extra']['typo3/cms'])
66+
&& is_array($composerJsonArray['extra']['typo3/cms'])
67+
) {
6368
$extensionKey = $this->getString($composerJsonArray['extra']['typo3/cms']['extension-key'] ?? '');
6469
}
6570

0 commit comments

Comments
 (0)