diff options
author | Louis Chemineau <louis@chmn.me> | 2022-01-10 18:42:07 +0100 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2022-01-10 18:42:07 +0100 |
commit | 92e60caa866718aaff8516b0fd3dc490c83499d1 (patch) | |
tree | 53275e73c228e9d5873d306644a98de6ce1edf2c /lib/public/Util.php | |
parent | e50121d4c05afb8eca22bc105b160283ff4181c0 (diff) | |
download | nextcloud-server-92e60caa866718aaff8516b0fd3dc490c83499d1.tar.gz nextcloud-server-92e60caa866718aaff8516b0fd3dc490c83499d1.zip |
Revert "Streamline reseting of private static properties"
This reverts commit e50121d4c05afb8eca22bc105b160283ff4181c0.
Diffstat (limited to 'lib/public/Util.php')
-rw-r--r-- | lib/public/Util.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/public/Util.php b/lib/public/Util.php index f8d8b1aaf71..61b8d9369cc 100644 --- a/lib/public/Util.php +++ b/lib/public/Util.php @@ -597,4 +597,14 @@ class Util { } return $temp; } + + /** + * Reset scripts and scriptDeps to empty arrays. + * Only used in tests. + * @since 24.0.0 + */ + public static function clearScriptsState() { + self::$scripts = []; + self::$scriptDeps = []; + } } |