Skip to content

Commit 36f2e70

Browse files
Merge pull request #408 from defuse/random-compat-v9
Allow random_compat v9.99.99 on PHP 7 projects.
2 parents 0d4d27c + 050bcc2 commit 36f2e70

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
}
2222
},
2323
"require": {
24-
"paragonie/random_compat": "~2.0",
24+
"paragonie/random_compat": ">= 2",
2525
"ext-openssl": "*",
2626
"php": ">=5.4.0"
2727
},

psalm.xml

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
</projectFiles>
88
<issueHandlers>
99
<DocblockTypeContradiction errorLevel="info" />
10+
<RedundantCondition errorLevel="info" />
1011
<RedundantConditionGivenDocblockType errorLevel="info" />
1112
</issueHandlers>
1213
</psalm>

src/Encoding.php

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public static function binToHex($byte_string)
4646
* @throws Ex\EnvironmentIsBrokenException
4747
*
4848
* @return string
49+
* @psalm-suppress TypeDoesNotContainType
4950
*/
5051
public static function hexToBin($hex_string)
5152
{

0 commit comments

Comments
 (0)