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 /apps/theming/lib/Command | |
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 'apps/theming/lib/Command')
-rw-r--r-- | apps/theming/lib/Command/UpdateConfig.php | 1 |
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:'); |