Skip to content

Commit 006eafb

Browse files
author
roadiz-ci
committed
Merge branch hotfix/v2.7.3
1 parent dd2bd45 commit 006eafb

7 files changed

Lines changed: 10 additions & 7 deletions

File tree

.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.2', '8.3']
22+
php-version: ['8.3', '8.4']
2323
steps:
2424
- uses: shivammathur/setup-php@v2
2525
with:

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright © 2024 Ambroise Maupate
3+
Copyright © 2025 Ambroise Maupate
44

55
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:
66

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
}
1313
],
1414
"require": {
15-
"php": ">=8.2",
15+
"php": ">=8.3",
1616
"psr/log": ">=1.1",
1717
"ext-openssl": "*"
1818
},
1919
"require-dev": {
20-
"phpstan/phpstan": "^1.5.3",
20+
"phpstan/phpstan": "^2.1.36",
2121
"phpstan/phpdoc-parser": "<2"
2222
},
2323
"autoload": {
@@ -27,8 +27,8 @@
2727
},
2828
"extra": {
2929
"branch-alias": {
30-
"dev-main": "2.5.x-dev",
31-
"dev-develop": "2.6.x-dev"
30+
"dev-main": "2.7.x-dev",
31+
"dev-develop": "2.8.x-dev"
3232
}
3333
}
3434
}

src/PasswordGenerator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class PasswordGenerator extends RandomGenerator implements PasswordGeneratorInte
1616
*
1717
* @see https://gist.github.com/tylerhall/521810
1818
*/
19+
#[\Override]
1920
public function generatePassword(int $length = 16): string
2021
{
2122
$sets = [];

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 (false !== $bytes && true === $strong) {
23+
if (true === $strong) {
2424
return $bytes;
2525
}
2626

src/SaltGenerator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
class SaltGenerator extends RandomGenerator implements SaltGeneratorInterface
88
{
9+
#[\Override]
910
public function generateSalt(): string
1011
{
1112
return strtr(base64_encode($this->getRandomNumber(24)), '{}', '-_');

src/TokenGenerator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
class TokenGenerator extends RandomGenerator implements TokenGeneratorInterface
88
{
9+
#[\Override]
910
public function generateToken(): string
1011
{
1112
return rtrim(strtr(base64_encode($this->getRandomNumber()), '+/', '-_'), '=');

0 commit comments

Comments
 (0)