aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Security/SecureRandomTest.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2025-05-13 08:49:30 +0200
committerJoas Schilling <coding@schilljs.com>2025-05-15 08:24:59 +0200
commitf474b5b3a983b69b515ecf62ae46bd3d196d37a0 (patch)
treeaeb0aa60f9207af82f083d91314d64ad95a43e5e /tests/lib/Security/SecureRandomTest.php
parentc5cd7ef9b9d1a5e439144b845164c0594ce0bef5 (diff)
downloadnextcloud-server-f474b5b3a983b69b515ecf62ae46bd3d196d37a0.tar.gz
nextcloud-server-f474b5b3a983b69b515ecf62ae46bd3d196d37a0.zip
test: Fix tests/lib/Security/
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests/lib/Security/SecureRandomTest.php')
-rw-r--r--tests/lib/Security/SecureRandomTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/Security/SecureRandomTest.php b/tests/lib/Security/SecureRandomTest.php
index 8000917579b..98eb0e45df3 100644
--- a/tests/lib/Security/SecureRandomTest.php
+++ b/tests/lib/Security/SecureRandomTest.php
@@ -13,7 +13,7 @@ namespace Test\Security;
use OC\Security\SecureRandom;
class SecureRandomTest extends \Test\TestCase {
- public function stringGenerationProvider() {
+ public static function stringGenerationProvider(): array {
return [
[1, 1],
[128, 128],
@@ -24,7 +24,7 @@ class SecureRandomTest extends \Test\TestCase {
];
}
- public static function charCombinations() {
+ public static function charCombinations(): array {
return [
['CHAR_LOWER', '[a-z]'],
['CHAR_UPPER', '[A-Z]'],
@@ -76,7 +76,7 @@ class SecureRandomTest extends \Test\TestCase {
$this->assertSame(1, $matchesRegex);
}
- public static function invalidLengths() {
+ public static function invalidLengths(): array {
return [
[0],
[-1],