From 9c3177f6343ef2645538b8d9b5c83d5533e9527d Mon Sep 17 00:00:00 2001 From: Paragon Initiative Enterprises <security@paragonie.com> Date: Mon, 4 Jun 2018 10:19:43 -0400 Subject: [PATCH] Redundant conditions are fine. --- src/Base32.php | 1 + src/Base64.php | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Base32.php b/src/Base32.php index a8b6fbe..1712e65 100644 --- a/src/Base32.php +++ b/src/Base32.php @@ -191,6 +191,7 @@ abstract class Base32 implements EncoderInterface * @param bool $strictPadding * @return string * @throws \TypeError + * @psalm-suppress RedundantCondition */ protected static function doDecode(string $src, bool $upper = false, bool $strictPadding = false): string { diff --git a/src/Base64.php b/src/Base64.php index 3408ddb..ce04da3 100644 --- a/src/Base64.php +++ b/src/Base64.php @@ -121,6 +121,7 @@ abstract class Base64 implements EncoderInterface * @return string * @throws \RangeException * @throws \TypeError + * @psalm-suppress RedundantCondition */ public static function decode(string $src, bool $strictPadding = false): string { -- GitLab