diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-04-22 16:55:42 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-04-22 16:55:42 +0200 |
commit | 5d1ca7e25aee8264b3dff79eed10eba0568ce82f (patch) | |
tree | 648ff723576601c01bf99782e8b5c21a1ac95265 /tests/lib | |
parent | 37c89f41918b316c8ba2961a6c7e8ab417161ba9 (diff) | |
download | nextcloud-server-5d1ca7e25aee8264b3dff79eed10eba0568ce82f.tar.gz nextcloud-server-5d1ca7e25aee8264b3dff79eed10eba0568ce82f.zip |
fix: Drop workarounds for unsupported obsolete PHP versions
Also improved error handling in Installer.php to be type safe.
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/ImageTest.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/lib/ImageTest.php b/tests/lib/ImageTest.php index f4da0275c2d..62d037d70c5 100644 --- a/tests/lib/ImageTest.php +++ b/tests/lib/ImageTest.php @@ -149,8 +149,7 @@ class ImageTest extends \Test\TestCase { $img = new \OC_Image(null, null, $config); $img->loadFromFile(OC::$SERVERROOT.'/tests/data/testimage.jpg'); $raw = imagecreatefromstring(file_get_contents(OC::$SERVERROOT.'/tests/data/testimage.jpg')); - /** @psalm-suppress InvalidScalarArgument */ - imageinterlace($raw, (PHP_VERSION_ID >= 80000 ? true : 1)); + imageinterlace($raw, true); ob_start(); imagejpeg($raw, null, 80); $expected = ob_get_clean(); |