From f24b967b8be9d14385da695b61022de171d5f2a8 Mon Sep 17 00:00:00 2001 From: Karsten Dambekalns Date: Wed, 21 Jun 2023 12:41:52 +0200 Subject: [PATCH] TASK: Fix deprecation warnings about incompatible types These cause warnings when using PHP 8.1, so cast to the expected type or fix another way. --- Classes/Files.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Files.php b/Classes/Files.php index 449bb65..f280e9e 100644 --- a/Classes/Files.php +++ b/Classes/Files.php @@ -320,7 +320,7 @@ public static function copyDirectoryRecursively(string $sourceDirectory, string * @return mixed The file content as a string or false if the file could not be opened. * @api */ - public static function getFileContents(string $pathAndFilename, int $flags = 0, $context = null, int $offset = null, int $maximumLength = -1) + public static function getFileContents(string $pathAndFilename, int $flags = 0, $context = null, int $offset = 0, int $maximumLength = -1) { if ($flags === true) { $flags = FILE_USE_INCLUDE_PATH;