Skip to content

Commit

Permalink
Bugfix Functions implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Jan 1, 2024
1 parent 3f9cb18 commit fcbbbde
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Base32/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
declare(strict_types=1);

use Bakame\Aide\Base32\Base32;
use Bakame\Aide\Base32\Base32Exception;

defined('PHP_BASE32_ASCII') || define('PHP_BASE32_ASCII', 1);
defined('PHP_BASE32_HEX') || define('PHP_BASE32_HEX', 2);
Expand Down Expand Up @@ -33,7 +34,7 @@ function base32_decode(string $encoded, int $encoding = PHP_BASE32_ASCII, bool $

try {
return $base32->decode($encoded);
} catch (Throwable) {
} catch (Base32Exception) {
return false;
}
}
Expand Down

0 comments on commit fcbbbde

Please sign in to comment.