aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming/lib/Command
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-01-26 14:26:58 +0100
committerCarl Schwan <carl@carlschwan.eu>2022-01-26 14:26:58 +0100
commite3a12b348206adcfbfb0fbc8435ba91240ac2b0a (patch)
treea95db61139c9399dd51c10bed7faaeee42919c30 /apps/theming/lib/Command
parenta145edd00db95135bee6f584e21301267fb5ac16 (diff)
downloadnextcloud-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 'apps/theming/lib/Command')
-rw-r--r--apps/theming/lib/Command/UpdateConfig.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/theming/lib/Command/UpdateConfig.php b/apps/theming/lib/Command/UpdateConfig.php
index 1ff75b5ba70..bb226668943 100644
--- a/apps/theming/lib/Command/UpdateConfig.php
+++ b/apps/theming/lib/Command/UpdateConfig.php
@@ -79,6 +79,7 @@ class UpdateConfig extends Command {
protected function execute(InputInterface $input, OutputInterface $output): int {
$key = $input->getArgument('key');
$value = $input->getArgument('value');
+ assert(is_string($value) || $value === null, 'At most one value should be provided.');
if ($key === null) {
$output->writeln('Current theming config:');