Psalm coverage for phpseclib3\Math\

Psalm coverage for phpseclib3\Math\
This commit is contained in:
Jack Worman 2022-02-21 07:43:51 -06:00 committed by terrafrost
parent 6f2db49696
commit b6f93a4a21
2 changed files with 17 additions and 2 deletions

View File

@ -7,7 +7,6 @@
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
findUnusedPsalmSuppress="true"
sealAllMethods="true"
errorBaseline="psalm_baseline.xml"
>
<projectFiles>
<directory name="../phpseclib"/>
@ -27,5 +26,20 @@
<directory name="../phpseclib/Net"/>
</errorLevel>
</UndefinedConstant>
<ParamNameMismatch>
<errorLevel type="suppress">
<directory name="../phpseclib/Math"/>
</errorLevel>
</ParamNameMismatch>
<UndefinedMethod>
<errorLevel type="suppress">
<directory name="../phpseclib/Math"/>
</errorLevel>
</UndefinedMethod>
<UndefinedConstant>
<errorLevel type="suppress">
<directory name="../phpseclib/Math"/>
</errorLevel>
</UndefinedConstant>
</issueHandlers>
</psalm>

View File

@ -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);
}
}