Skip to content

Commit b45e5a3

Browse files
committed
Update deps
1 parent 2bb3226 commit b45e5a3

File tree

4 files changed

+59
-48
lines changed

4 files changed

+59
-48
lines changed

composer.lock

Lines changed: 55 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Entity/VersionRepository.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ public function getVersionData(array $versionIds): array
147147
['ids' => ArrayParameterType::INTEGER]
148148
);
149149
foreach ($rows as $row) {
150+
assert(isset($result[$row['version_id']]));
150151
$result[$row['version_id']][$link][] = $row;
151152
}
152153
}
@@ -158,6 +159,7 @@ public function getVersionData(array $versionIds): array
158159
);
159160
foreach ($rows as $row) {
160161
$versionId = $row['version_id'];
162+
assert(isset($result[$versionId]));
161163
$result[$versionId]['tags'][] = $row['name'];
162164
}
163165

src/Model/VersionIdCache.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public function augmentDownloadPayloadWithIds(array $payload): array
3939

4040
foreach ($results as $key => $result) {
4141
if ($result) {
42+
assert(isset($payload[$key]));
4243
[$id, $vid] = explode(',', $result);
4344
$payload[$key]['id'] = (int) $id;
4445
$payload[$key]['vid'] = (int) $vid;

src/Package/Updater.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ private function updateInformation(IOInterface $io, VersionRepository $versionRe
441441
$version->setSoftDeletedAt(null);
442442
$version->setReleasedAt($data->getReleaseDate() === null ? null : \DateTimeImmutable::createFromInterface($data->getReleaseDate()));
443443

444-
if ($data->getSourceType()) {
444+
if ($data->getSourceType()) { // null or '' here explicitly means no source and will be nulled, do not change this behavior
445445
$source['type'] = $data->getSourceType();
446446
$source['url'] = $data->getSourceUrl();
447447
// force public URLs even if the package somehow got downgraded to a GitDriver

0 commit comments

Comments
 (0)