summaryrefslogtreecommitdiffstats
path: root/psalm.xml
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2021-10-25 16:13:50 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2021-11-02 11:49:13 +0100
commit23aa60bb8ddf038a531f7aec1d7f48bebf8965dd (patch)
treef150f51142cac8e9b7d12328749f52cfb6295dd5 /psalm.xml
parent4698a298253ac77a258670376185d2cc36dd661f (diff)
downloadnextcloud-server-23aa60bb8ddf038a531f7aec1d7f48bebf8965dd.tar.gz
nextcloud-server-23aa60bb8ddf038a531f7aec1d7f48bebf8965dd.zip
Fix resource usages in OC_Image
This makes sure using resource or GdImage (PHP>=8) behaves the same. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'psalm.xml')
-rw-r--r--psalm.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/psalm.xml b/psalm.xml
index d51dbb9dde6..bc21dbceffe 100644
--- a/psalm.xml
+++ b/psalm.xml
@@ -80,6 +80,8 @@
<UndefinedClass>
<errorLevel type="suppress">
<referencedClass name="OCA\GroupFolders\Mount\GroupFolderStorage"/>
+ <!-- Classes from PHP>=8 (needed to be able to use \GdImage::class) -->
+ <referencedClass name="GdImage" />
</errorLevel>
</UndefinedClass>
<UndefinedFunction>
@@ -123,6 +125,8 @@
<!-- Helper classes for sharing API integration from other apps -->
<referencedClass name="OCA\Deck\Sharing\ShareAPIHelper" />
<referencedClass name="OCA\Talk\Share\Helper\DeletedShareAPIController" />
+ <!-- Classes from PHP>=8 -->
+ <referencedClass name="GdImage" />
</errorLevel>
</UndefinedDocblockClass>
</issueHandlers>