summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorChristian Schneider2020-01-20 13:48:36 +0100
committerChristian Schneider2020-01-20 13:48:36 +0100
commite9140b4736c79aeff8c98b9e251418047fe12f46 (patch)
treefd51ba4c84eee58f573dd610b79e8e2a22f15b69 /it.class
parent4e96426bdb7a46e2d65077461495af034ae65e4d (diff)
downloaditools-e9140b4736c79aeff8c98b9e251418047fe12f46.tar.gz
itools-e9140b4736c79aeff8c98b9e251418047fe12f46.tar.bz2
itools-e9140b4736c79aeff8c98b9e251418047fe12f46.zip
Support all arguments of file_get_contents, including maxlen
Diffstat (limited to 'it.class')
-rw-r--r--it.class4
1 files changed, 2 insertions, 2 deletions
diff --git a/it.class b/it.class
index 442fd66..41b9eb7 100644
--- a/it.class
+++ b/it.class
@@ -1198,9 +1198,9 @@ static function safe_filename($filename)
return $filename;
}
-static function file_get_contents($filename, $use_include_path = false, $context = null, $offset = 0)
+static function file_get_contents($filename, ...$args)
{
- return file_get_contents(it::safe_filename($filename), $use_include_path, $context, $offset); # NOPHPLINT
+ return file_get_contents(it::safe_filename($filename), ...$args); # NOPHPLINT
}
static function file_put_contents($filename, $data, $flags = 0, $resource = null)