Skip to content

Commit 87ef70b

Browse files
committed
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>
1 parent 4fece17 commit 87ef70b

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

psalm.xml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,36 @@
4141
<issueHandlers>
4242
<UndefinedFunction>
4343
<errorLevel type="suppress">
44+
<!-- template functions: https://github.com/nextcloud/server/blob/6e8e34fef920a073118c22111f0f31eb3b3a91dc/lib/private/legacy/template/functions.php -->
4445
<referencedFunction name="p"/>
46+
<referencedFunction name="emit_css_tag"/>
47+
<referencedFunction name="emit_css_loading_tags"/>
48+
<referencedFunction name="emit_script_tag"/>
49+
<referencedFunction name="emit_script_loading_tags"/>
4550
<referencedFunction name="print_unescaped"/>
4651
<referencedFunction name="script"/>
52+
<referencedFunction name="vendor_script"/>
4753
<referencedFunction name="style"/>
54+
<referencedFunction name="vendor_style"/>
55+
<referencedFunction name="translation"/>
56+
<referencedFunction name="component"/>
57+
<referencedFunction name="link_to"/>
58+
<referencedFunction name="link_to_docs"/>
59+
<referencedFunction name="image_path"/>
60+
<referencedFunction name="mimetype_icon"/>
61+
<referencedFunction name="preview_icon"/>
62+
<referencedFunction name="publicPreview_icon"/>
63+
<referencedFunction name="human_file_size"/>
64+
<referencedFunction name="strip_time"/>
65+
<referencedFunction name="relative_modified_date"/>
66+
<referencedFunction name="html_select_options"/>
4867
</errorLevel>
4968
</UndefinedFunction>
5069
<UndefinedGlobalVariable>
5170
<errorLevel type="suppress">
52-
<referencedVariable name="$l"/>
5371
<referencedVariable name="$_"/>
72+
<referencedVariable name="$l"/>
73+
<referencedVariable name="$theme"/>
5474
<!-- false positive: https://github.com/nextcloud/server/blob/cb057829f72c70e819f456edfadbb29d72dba832/lib/private/Console/Application.php#L92 -->
5575
<file name="apps/*/appinfo/register_command.php" />
5676
<file name="core/register_command.php" />

0 commit comments

Comments
 (0)