aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-07-05 10:17:49 +0200
committerJoas Schilling <coding@schilljs.com>2023-10-06 15:29:24 +0200
commit00acf1bae1b35dcbd13e858ccc1a706f2c6e1d8c (patch)
tree26e6ef2e829a5362faeb71553db62083de64ae37
parentc4ed7f9d21afefb670f95560c02d991f16b2366d (diff)
downloadnextcloud-server-00acf1bae1b35dcbd13e858ccc1a706f2c6e1d8c.tar.gz
nextcloud-server-00acf1bae1b35dcbd13e858ccc1a706f2c6e1d8c.zip
feat(CI): Add a stub for SensitiveParameter, so Psalm is not failing on Doctrine/DBAL
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--build/stubs/SensitiveParameter.phpstub5
-rw-r--r--psalm.xml1
2 files changed, 6 insertions, 0 deletions
diff --git a/build/stubs/SensitiveParameter.phpstub b/build/stubs/SensitiveParameter.phpstub
new file mode 100644
index 00000000000..95715138927
--- /dev/null
+++ b/build/stubs/SensitiveParameter.phpstub
@@ -0,0 +1,5 @@
+<?php
+
+#[\Attribute(Attribute::TARGET_PARAMETER)]
+class SensitiveParameter {
+}
diff --git a/psalm.xml b/psalm.xml
index 859e510f412..4f7c479a152 100644
--- a/psalm.xml
+++ b/psalm.xml
@@ -68,6 +68,7 @@
<file name="build/stubs/imagick.php"/>
<file name="build/stubs/intl.php"/>
<file name="build/stubs/IntlChar.php"/>
+ <file name="build/stubs/SensitiveParameter.phpstub"/>
<file name="build/stubs/ldap.php"/>
<file name="build/stubs/memcached.php"/>
<file name="build/stubs/redis.php"/>