Skip to content

Commit

Permalink
Fix return logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Koen Eelen committed Apr 22, 2024
1 parent cb37bf4 commit 43c3ff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Console/DecodeJwtCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$output->writeln('Signature verification: ' . ($verified ? '' : ''));

// Return 0 as exit code if verified & valid, otherwise 1.
return ($valid && $verified) ? 1 : 0;
return (int)!($valid && $verified);
}
}

0 comments on commit 43c3ff5

Please sign in to comment.