]> source.dussan.org Git - nextcloud-server.git/commitdiff
Suppress warning for template functions.
authorDaniel Kesselberg <mail@danielkesselberg.de>
Fri, 14 Aug 2020 14:18:23 +0000 (16:18 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Tue, 18 Aug 2020 06:58:20 +0000 (08:58 +0200)
https://github.com/nextcloud/server/blob/6e8e34fef920a073118c22111f0f31eb3b3a91dc/lib/private/legacy/template/functions.php
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
psalm.xml

index 289fc1f08441a687e66f71d812a457a10f79d2f9..0beffd3571d40cd8baa2db413c2f57977a3d9c2c 100644 (file)
--- a/psalm.xml
+++ b/psalm.xml
        <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" />