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; } /**