mirror of
https://github.com/danog/phpseclib.git
synced 2025-01-22 13:01:59 +01:00
Psalm coverage for phpseclib3\Math\
Psalm coverage for phpseclib3\Math\
This commit is contained in:
parent
6f2db49696
commit
b6f93a4a21
@ -7,7 +7,6 @@
|
|||||||
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
|
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
|
||||||
findUnusedPsalmSuppress="true"
|
findUnusedPsalmSuppress="true"
|
||||||
sealAllMethods="true"
|
sealAllMethods="true"
|
||||||
errorBaseline="psalm_baseline.xml"
|
|
||||||
>
|
>
|
||||||
<projectFiles>
|
<projectFiles>
|
||||||
<directory name="../phpseclib"/>
|
<directory name="../phpseclib"/>
|
||||||
@ -27,5 +26,20 @@
|
|||||||
<directory name="../phpseclib/Net"/>
|
<directory name="../phpseclib/Net"/>
|
||||||
</errorLevel>
|
</errorLevel>
|
||||||
</UndefinedConstant>
|
</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>
|
</issueHandlers>
|
||||||
</psalm>
|
</psalm>
|
@ -162,7 +162,7 @@ class BinaryField extends FiniteField
|
|||||||
* Converts a base-2 string to a base-256 string
|
* Converts a base-2 string to a base-256 string
|
||||||
*
|
*
|
||||||
* @param string $x
|
* @param string $x
|
||||||
* @param integer $size
|
* @param int|null $size
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public static function base2ToBase256($x, $size = null)
|
public static function base2ToBase256($x, $size = null)
|
||||||
@ -196,3 +196,4 @@ class BinaryField extends FiniteField
|
|||||||
return Strings::bin2bits($x);
|
return Strings::bin2bits($x);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user