Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/OC.php
Original file line number Diff line number Diff line change
Expand Up @@ -1367,6 +1367,8 @@ private static function resetStaticProperties(): void {
\OC_App::reset();
\OC_Helper::reset();
Filesystem::reset();
/** @psalm-suppress InternalMethod */
\OCP\Util::resetStaticProperties();
}

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/private/Route/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ protected function includeLegacyFileRoute(array $parameters): void {
unset($param['_route']);
$_GET = array_merge($_GET, $param);
unset($param);
require_once $parameters['file'];
require $parameters['file'];
}

/**
Expand Down
12 changes: 12 additions & 0 deletions lib/public/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,18 @@ class Util {
/** @psalm-suppress ImpureStaticProperty */
private static ?bool $needUpgradeCache = null;

/**
* Reset static vars
* @since 36.0.0
* @internal Only for internal use, may be removed at any point
*/
public static function resetStaticProperties(): void {
self::$scriptsInit = [];
self::$scripts = [];
self::$scriptDeps = [];
self::$needUpgradeCache = null;
}

/**
* get the current installed version of Nextcloud
* @return array
Expand Down
Loading