Skip to content

Commit

Permalink
TASK: Fix deprecation warnings about incompatible types
Browse files Browse the repository at this point in the history
These cause warnings when using PHP 8.1, so cast to the expected type
or fix another way.
  • Loading branch information
kdambekalns committed Jun 21, 2023
1 parent 56c46a3 commit f24b967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Files.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f24b967

Please sign in to comment.