From 6bc53dfe1989e0e75be48b49229c13f3a0e4f56c Mon Sep 17 00:00:00 2001 From: Johan Kromhout Date: Thu, 14 Nov 2024 11:14:02 +0100 Subject: [PATCH] Tweak dependabot & fix dev bug 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. --- dependabot.yml | 7 +++++++ dev/Command/AuthenticationCommand.php | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 dependabot.yml diff --git a/dependabot.yml b/dependabot.yml new file mode 100644 index 00000000..7b94d6b8 --- /dev/null +++ b/dependabot.yml @@ -0,0 +1,7 @@ +version: 2 +updates: + - package-ecosystem: "composer" + directory: "/" + ignore: + - dependency-name: "symfony/*" + update-types: ["version-update:semver-major"] \ No newline at end of file diff --git a/dev/Command/AuthenticationCommand.php b/dev/Command/AuthenticationCommand.php index aaf89a22..ca547646 100644 --- a/dev/Command/AuthenticationCommand.php +++ b/dev/Command/AuthenticationCommand.php @@ -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; } /**