From b6f93a4a21ef6f0f226bf35e9271f298e292fb30 Mon Sep 17 00:00:00 2001 From: Jack Worman Date: Mon, 21 Feb 2022 07:43:51 -0600 Subject: [PATCH] Psalm coverage for phpseclib3\Math\ Psalm coverage for phpseclib3\Math\ --- build/psalm.xml | 16 +++++++++++++++- phpseclib/Math/BinaryField.php | 3 ++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/build/psalm.xml b/build/psalm.xml index b521dbfe..0a3f8db6 100644 --- a/build/psalm.xml +++ b/build/psalm.xml @@ -7,7 +7,6 @@ xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd" findUnusedPsalmSuppress="true" sealAllMethods="true" - errorBaseline="psalm_baseline.xml" > @@ -27,5 +26,20 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/phpseclib/Math/BinaryField.php b/phpseclib/Math/BinaryField.php index 58f5c148..e0bc4915 100644 --- a/phpseclib/Math/BinaryField.php +++ b/phpseclib/Math/BinaryField.php @@ -162,7 +162,7 @@ class BinaryField extends FiniteField * Converts a base-2 string to a base-256 string * * @param string $x - * @param integer $size + * @param int|null $size * @return string */ public static function base2ToBase256($x, $size = null) @@ -196,3 +196,4 @@ class BinaryField extends FiniteField return Strings::bin2bits($x); } } +