Skip to content

Commit 99f7922

Browse files
author
roadiz-ci
committed
chore: bumped
1 parent bdf98eb commit 99f7922

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"ext-openssl": "*"
1818
},
1919
"require-dev": {
20-
"phpstan/phpstan": "^2.1.36",
20+
"phpstan/phpstan": "^1.5.3",
2121
"phpstan/phpdoc-parser": "<2"
2222
},
2323
"autoload": {
@@ -27,8 +27,8 @@
2727
},
2828
"extra": {
2929
"branch-alias": {
30-
"dev-main": "2.7.x-dev",
31-
"dev-develop": "2.8.x-dev"
30+
"dev-main": "2.6.x-dev",
31+
"dev-develop": "2.7.x-dev"
3232
}
3333
}
3434
}

src/RandomGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function getRandomNumber(int $nbBytes = 32): string
2020
// try OpenSSL
2121
$bytes = \openssl_random_pseudo_bytes($nbBytes, $strong);
2222

23-
if (true === $strong) {
23+
if (false !== $bytes && true === $strong) {
2424
return $bytes;
2525
}
2626

0 commit comments

Comments
 (0)