From 1f50b3b0c5fff51f60243a65b0fa4f09b1b71133 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 17 Nov 2021 20:24:02 +0100 Subject: [PATCH] fix PHP 8.0 ArgumentCountError: readlink() expects exactly 1 argument, 2 given --- api/src/Vfs/Base.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/src/Vfs/Base.php b/api/src/Vfs/Base.php index d49758e61e..54252a1251 100644 --- a/api/src/Vfs/Base.php +++ b/api/src/Vfs/Base.php @@ -704,6 +704,10 @@ class Base else { $time = null; + if (in_array($name, ['readlink'])) + { + return $name($url); + } return $name($url, $time); } }