diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-01-26 14:26:58 +0100 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-01-26 14:26:58 +0100 |
commit | e3a12b348206adcfbfb0fbc8435ba91240ac2b0a (patch) | |
tree | a95db61139c9399dd51c10bed7faaeee42919c30 /build | |
parent | a145edd00db95135bee6f584e21301267fb5ac16 (diff) | |
download | nextcloud-server-e3a12b348206adcfbfb0fbc8435ba91240ac2b0a.tar.gz nextcloud-server-e3a12b348206adcfbfb0fbc8435ba91240ac2b0a.zip |
Fix psalm issues in theming app
After this change, we are down to only one psalm warning for this app
and related to the Application.php. This also make composer
psam:update-baseline not silently ignore new errors.
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'build')
-rw-r--r-- | build/psalm-baseline.xml | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/build/psalm-baseline.xml b/build/psalm-baseline.xml index 80198e702ea..32336871816 100644 --- a/build/psalm-baseline.xml +++ b/build/psalm-baseline.xml @@ -1978,60 +1978,11 @@ <code>$event->getObjectId()</code> </InvalidScalarArgument> </file> - <file src="apps/testing/lib/Controller/LockingController.php"> - <InvalidScalarArgument occurrences="5"> - <code>$this->config->getAppValue('testing', $lock)</code> - <code>$this->config->getAppValue('testing', $lock)</code> - <code>$this->config->getAppValue('testing', $lock)</code> - <code>$type</code> - <code>$type</code> - </InvalidScalarArgument> - </file> <file src="apps/theming/lib/AppInfo/Application.php"> <InvalidArgument occurrences="1"> <code>registerEventListener</code> </InvalidArgument> </file> - <file src="apps/theming/lib/Controller/IconController.php"> - <InvalidReturnStatement occurrences="1"> - <code>$response</code> - </InvalidReturnStatement> - <InvalidReturnType occurrences="1"> - <code>FileDisplayResponse|NotFoundResponse</code> - </InvalidReturnType> - <RedundantCondition occurrences="3"> - <code>$iconFile !== false</code> - <code>$iconFile !== false</code> - <code>$iconFile !== false</code> - </RedundantCondition> - </file> - <file src="apps/theming/lib/ImageManager.php"> - <InvalidReturnType occurrences="1"> - <code>string</code> - </InvalidReturnType> - </file> - <file src="apps/theming/lib/ThemingDefaults.php"> - <InvalidReturnStatement occurrences="1"> - <code>\OCP\Util::sanitizeHTML($this->config->getAppValue('theming', 'slogan', parent::getSlogan($lang)))</code> - </InvalidReturnStatement> - <InvalidReturnType occurrences="1"> - <code>getSlogan</code> - </InvalidReturnType> - <InvalidScalarArgument occurrences="1"> - <code>(int)$cacheBusterKey + 1</code> - </InvalidScalarArgument> - </file> - <file src="apps/theming/lib/Util.php"> - <InvalidReturnStatement occurrences="1"> - <code>0</code> - </InvalidReturnStatement> - <InvalidReturnType occurrences="1"> - <code>int[]</code> - </InvalidReturnType> - <RedundantCondition occurrences="1"> - <code>$folder !== null</code> - </RedundantCondition> - </file> <file src="apps/twofactor_backupcodes/lib/AppInfo/Application.php"> <InvalidArgument occurrences="4"> <code>registerEventListener</code> |