Skip to content

Commit

Permalink
Tweak dependabot & fix dev bug
Browse files Browse the repository at this point in the history
Prior to this change, dependabot would create pr's to upgrade from Symfony 6.4 to Symfony 7.1.
We don't want this, because 7.1 will be eol in a couple of months, which can the increase maintenance burden.
We will upgrade to 7.4 lts once it is released.
  • Loading branch information
johanib committed Nov 25, 2024
1 parent 5f8f9cc commit 6bc53df
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: "composer"
directory: "/"
ignore:
- dependency-name: "symfony/*"
update-types: ["version-update:semver-major"]
6 changes: 5 additions & 1 deletion dev/Command/AuthenticationCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,16 @@ protected function readAuthenticationLinkFromFile(string $file, OutputInterface
$qrcode = new QrReader(file_get_contents($file), QrReader::SOURCE_TYPE_BLOB);
$link = $qrcode->text();

if (!is_string($link)) {
throw new RuntimeException('QR code could not be read');
}

$output->writeln([
'Registration link result: ',
$this->decorateResult($link),
]);

return $link->toString();
return $link;
}

/**
Expand Down

0 comments on commit 6bc53df

Please sign in to comment.