Skip to content

Commit 85fc3c8

Browse files
author
roadiz-ci
committed
chore: Bumped
1 parent 9ecfa68 commit 85fc3c8

File tree

6 files changed

+17
-44
lines changed

6 files changed

+17
-44
lines changed

.github/workflows/run-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020
strategy:
2121
matrix:
22-
php-version: ['8.0', '8.1']
22+
php-version: ['8.1', '8.2', '8.3']
2323
steps:
2424
- uses: shivammathur/setup-php@v2
2525
with:

.travis.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

LICENSE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
The MIT License (MIT)
2+
3+
Copyright © 2023 Ambroise Maupate
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

composer.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
}
1313
],
1414
"require": {
15-
"php": ">=8.0",
16-
"psr/log": ">=1.1"
15+
"php": ">=8.1",
16+
"psr/log": ">=1.1",
17+
"ext-openssl": "*"
1718
},
1819
"require-dev": {
1920
"phpstan/phpstan": "^1.5.3",
@@ -26,8 +27,8 @@
2627
},
2728
"extra": {
2829
"branch-alias": {
29-
"dev-main": "2.1.x-dev",
30-
"dev-develop": "2.2.x-dev"
30+
"dev-main": "2.2.x-dev",
31+
"dev-develop": "2.3.x-dev"
3132
}
3233
}
3334
}

src/RandomGenerator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ public function __construct(LoggerInterface $logger = null)
3434
* @param int $nbBytes
3535
* @return string
3636
*/
37-
protected function getRandomNumber(int $nbBytes = 32): string
37+
public function getRandomNumber(int $nbBytes = 32): string
3838
{
3939
// try OpenSSL
4040
if ($this->useOpenSsl) {
41-
$bytes = openssl_random_pseudo_bytes($nbBytes, $strong);
41+
$bytes = \openssl_random_pseudo_bytes($nbBytes, $strong);
4242

4343
if (false !== $bytes && true === $strong) {
4444
return $bytes;

0 commit comments

Comments
 (0)