Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2021-10-25 17:13:50 +0300
committerCôme Chilliet <come.chilliet@nextcloud.com>2021-10-28 18:48:43 +0300
commit36317896513ce229938d3cba96d32db19d2510d2 (patch)
tree5897796dc942200e8fb7fd02b2d8672573917bf2 /psalm.xml
parentdf4e6bab6938287e7c0a876bdeacb7e0d8617723 (diff)
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 a075ceb24a7..4f75af61dde 100644
--- a/psalm.xml
+++ b/psalm.xml
@@ -81,6 +81,8 @@
<errorLevel type="suppress">
<referencedClass name="OCA\GroupFolders\Mount\GroupFolderStorage"/>
<referencedClass name="OCA\TwoFactorNextcloudNotification\Controller\APIController"/>
+ <!-- Classes from PHP>=8 (needed to be able to use \GdImage::class) -->
+ <referencedClass name="GdImage" />
</errorLevel>
</UndefinedClass>
<UndefinedFunction>
@@ -124,6 +126,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>