]> source.dussan.org Git - nextcloud-server.git/commitdiff
Suppress warning for $_ and $l
authorDaniel Kesselberg <mail@danielkesselberg.de>
Mon, 10 Aug 2020 20:25:51 +0000 (22:25 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Tue, 18 Aug 2020 06:58:20 +0000 (08:58 +0200)
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
psalm.xml

index f70591ea2fea7229f8d87f612df4b6a68e3e2920..ae059566555399ccef1549368394451015dc3830 100644 (file)
--- a/psalm.xml
+++ b/psalm.xml
@@ -4,7 +4,7 @@
        resolveFromConfigFile="true"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns="https://getpsalm.org/schema/config"
-       xsi:schemaLocation="https://getpsalm.org/schema/config lib/composer/vimeo/psalm/config.xsd"
+       xsi:schemaLocation="https://getpsalm.org/schema/config"
 >
        <projectFiles>
                <directory name="apps"/>
                                <directory name="core/templates"/>
                        </errorLevel>
                </UndefinedFunction>
+               <UndefinedGlobalVariable>
+                       <errorLevel type="suppress">
+                               <referencedVariable name="l" />
+                               <referencedVariable name="_" />
+                               <directory name="apps/**/templates"/>
+                               <directory name="core/templates"/>
+                       </errorLevel>
+               </UndefinedGlobalVariable>
        </issueHandlers>
 </psalm>