Skip to content

Commit

Permalink
Merge pull request #222 from OpenConext/feature/tame-dependabot
Browse files Browse the repository at this point in the history
Tweak dependabot & fix dev bug
  • Loading branch information
johanib authored Nov 25, 2024
2 parents 5f8f9cc + 6bc53df commit 965bf48
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 965bf48

Please sign in to comment.