summaryrefslogtreecommitdiffstats
path: root/psalm.xml
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2020-08-14 16:18:23 +0200
committerMorris Jobke <hey@morrisjobke.de>2020-08-18 08:58:20 +0200
commit8d18f0a7d736594e77191f3139610833212b0ecf (patch)
tree07c0360dcec62389463451b42cc5bca5750def11 /psalm.xml
parent90aa451447c6013f3e70ff1c256a4074301c45f8 (diff)
downloadnextcloud-server-8d18f0a7d736594e77191f3139610833212b0ecf.tar.gz
nextcloud-server-8d18f0a7d736594e77191f3139610833212b0ecf.zip
Suppress warning for template functions.
https://github.com/nextcloud/server/blob/6e8e34fef920a073118c22111f0f31eb3b3a91dc/lib/private/legacy/template/functions.php Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'psalm.xml')
-rw-r--r--psalm.xml22
1 files changed, 21 insertions, 1 deletions
diff --git a/psalm.xml b/psalm.xml
index 289fc1f0844..0beffd3571d 100644
--- a/psalm.xml
+++ b/psalm.xml
@@ -41,16 +41,36 @@
<issueHandlers>
<UndefinedFunction>
<errorLevel type="suppress">
+ <!-- template functions: https://github.com/nextcloud/server/blob/6e8e34fef920a073118c22111f0f31eb3b3a91dc/lib/private/legacy/template/functions.php -->
<referencedFunction name="p"/>
+ <referencedFunction name="emit_css_tag"/>
+ <referencedFunction name="emit_css_loading_tags"/>
+ <referencedFunction name="emit_script_tag"/>
+ <referencedFunction name="emit_script_loading_tags"/>
<referencedFunction name="print_unescaped"/>
<referencedFunction name="script"/>
+ <referencedFunction name="vendor_script"/>
<referencedFunction name="style"/>
+ <referencedFunction name="vendor_style"/>
+ <referencedFunction name="translation"/>
+ <referencedFunction name="component"/>
+ <referencedFunction name="link_to"/>
+ <referencedFunction name="link_to_docs"/>
+ <referencedFunction name="image_path"/>
+ <referencedFunction name="mimetype_icon"/>
+ <referencedFunction name="preview_icon"/>
+ <referencedFunction name="publicPreview_icon"/>
+ <referencedFunction name="human_file_size"/>
+ <referencedFunction name="strip_time"/>
+ <referencedFunction name="relative_modified_date"/>
+ <referencedFunction name="html_select_options"/>
</errorLevel>
</UndefinedFunction>
<UndefinedGlobalVariable>
<errorLevel type="suppress">
- <referencedVariable name="$l"/>
<referencedVariable name="$_"/>
+ <referencedVariable name="$l"/>
+ <referencedVariable name="$theme"/>
<!-- false positive: https://github.com/nextcloud/server/blob/cb057829f72c70e819f456edfadbb29d72dba832/lib/private/Console/Application.php#L92 -->
<file name="apps/*/appinfo/register_command.php" />
<file name="core/register_command.php" />