Skip to content

Commit 0da971d

Browse files
Merge pull request #60 from aprat84/bugfix/array-illegal-offset-type-error
fix: cast `Scope` as string to use it as array key
2 parents fd9d9f0 + aff96f7 commit 0da971d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Changelog.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,10 +327,10 @@ public function generate(string $root, InputInterface $input, SymfonyStyle $outp
327327
->setDescription($description)
328328
->setScope($scope)
329329
->setHash($hash);
330-
$changes[$breakingType][$scope][$key][$hash] = $breakingCommit;
330+
$changes[$breakingType][(string)$scope][$key][$hash] = $breakingCommit;
331331
$summary[$breakingType]++;
332332
}
333-
$changes[$type][$scope][$itemKey][$hash] = $commit;
333+
$changes[$type][(string)$scope][$itemKey][$hash] = $commit;
334334
$summary[$type]++;
335335
}
336336
}

0 commit comments

Comments
 (0)