diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-01-26 16:50:18 +0300 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-01-27 13:12:45 +0300 |
commit | f778cbe7b9f0c41e25a0e2fe1031e969ba04c2c1 (patch) | |
tree | fb35b8d8e66d5abe40eae00663bf911144de461c /apps | |
parent | e3a12b348206adcfbfb0fbc8435ba91240ac2b0a (diff) |
Fix registerEventListener issues
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/theming/lib/Controller/IconController.php | 3 | ||||
-rw-r--r-- | apps/theming/lib/ThemingDefaults.php | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/theming/lib/Controller/IconController.php b/apps/theming/lib/Controller/IconController.php index 4235c66a457..da6668c4906 100644 --- a/apps/theming/lib/Controller/IconController.php +++ b/apps/theming/lib/Controller/IconController.php @@ -107,8 +107,7 @@ class IconController extends Controller { * @NoCSRFRequired * * @param $app string app name - * @psalm-return FileDisplayResponse|DataDisplayResponse - * @return Response + * @return FileDisplayResponse|DataDisplayResponse * @throws \Exception */ public function getFavicon(string $app = 'core'): Response { diff --git a/apps/theming/lib/ThemingDefaults.php b/apps/theming/lib/ThemingDefaults.php index aafeb2498b6..74b75372083 100644 --- a/apps/theming/lib/ThemingDefaults.php +++ b/apps/theming/lib/ThemingDefaults.php @@ -158,6 +158,7 @@ class ThemingDefaults extends \OC_Defaults { } /** + * We pass a string and sanitizeHTML will return a string to in that case * @psalm-suppress InvalidReturnStatement * @psalm-suppress InvalidReturnType */ @@ -407,7 +408,7 @@ class ThemingDefaults extends \OC_Defaults { /** * Increases the cache buster key */ - private function increaseCacheBuster() { + private function increaseCacheBuster(): void { $cacheBusterKey = (int)$this->config->getAppValue('theming', 'cachebuster', '0'); $this->config->setAppValue('theming', 'cachebuster', (string)($cacheBusterKey + 1)); $this->cacheFactory->createDistributed('theming-')->clear(); |