From 92208ea19caf3f22ac8d56a4e028206867905d69 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Wed, 19 Aug 2026 14:08:34 +0200 Subject: [PATCH] chore: Undeprecated ISecureRandom - This makes it easy to mock randomness in unit tests as ISecureRandom is a service. - The default list of character would then need to be copied everywhere - This is used all other the place Signed-off-by: Carl Schwan --- build/psalm-baseline.xml | 124 -------------------------- lib/public/Security/ISecureRandom.php | 1 - 2 files changed, 125 deletions(-) diff --git a/build/psalm-baseline.xml b/build/psalm-baseline.xml index e04dc882c00fd..161978202ebaa 100644 --- a/build/psalm-baseline.xml +++ b/build/psalm-baseline.xml @@ -28,11 +28,6 @@ - - - - - @@ -190,7 +185,6 @@ - @@ -275,11 +269,6 @@ baseEvent->DTSTART]]> - - - - - @@ -454,9 +443,6 @@ - - - DTSTART]]> UID]]> @@ -878,11 +864,6 @@ - - - - - {'VEVENT'}]]> @@ -1016,11 +997,6 @@ - - - - - {'RECURRENCE-ID'}]]> @@ -1079,9 +1055,6 @@ - - - DTEND]]> DTSTART]]> @@ -1262,9 +1235,6 @@ - - - @@ -1351,7 +1321,6 @@ - @@ -1386,16 +1355,6 @@ - - - - - - - - - - @@ -1404,11 +1363,6 @@ ]]> - - - - - fileEncrypted[$fileId]]]> @@ -1475,11 +1429,6 @@ - - - - - @@ -1620,11 +1569,6 @@ - - - - - - @@ -2260,12 +2203,6 @@ - - - - - - @@ -2289,11 +2226,6 @@ - - - - - @@ -2333,7 +2265,6 @@ - @@ -2437,23 +2368,12 @@ - - - - - - - - - - - @@ -2641,16 +2561,6 @@ - - - - - - - - - - @@ -2836,11 +2746,6 @@ - - - - - @@ -3005,19 +2910,11 @@ - - - - - - - - @@ -3054,23 +2951,8 @@ - - - - - - - - - - - - - - - @@ -3219,11 +3101,6 @@ - - - - - @@ -4217,7 +4094,6 @@ - diff --git a/lib/public/Security/ISecureRandom.php b/lib/public/Security/ISecureRandom.php index c2b769e2ba834..4431eaa4c3a95 100644 --- a/lib/public/Security/ISecureRandom.php +++ b/lib/public/Security/ISecureRandom.php @@ -64,7 +64,6 @@ interface ISecureRandom { * specified all valid base64 characters are used. * @return string * @since 8.0.0 - * @deprecated 35.0.0 Use {@see Randomizer::getBytesFromString()} available in PHP 8.3+ instead. */ public function generate(int $length, string $characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'): string;