Skip to content

Commit

Permalink
php7.3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
IljaN committed Nov 10, 2023
1 parent afe3498 commit c9c5729
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions apps/files_versions/lib/MetaStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ class MetaStorage {
/** @var FileHelper */
private $fileHelper;

private ?bool $objectStoreEnabled = null;
/** @var boolean|null */
private $objectStoreEnabled = null;

/**
* @param string $dataDir Absolute path to the data-directory
Expand Down Expand Up @@ -210,7 +211,7 @@ public function restore(string $currentFileName, FileInfo $restoreVersionFile, s
// increment version tag for current meta
$oldCurrentVersionTag = $currentMetaData['version_tag'] ?? '';
$newCurrentVersionTag = $this->incrementVersionTag($oldCurrentVersionTag, true);

// create new currentMetaFile
$metadata = [
'edited_by' => $newVersionEditedBy,
Expand Down Expand Up @@ -299,7 +300,7 @@ private function incrementVersionTag(string $oldVersionTag, bool $minor) : strin
// initialize
return '0.1';
}

$versionParts = explode(".", $oldVersionTag);
$majorVersionPart = $versionParts[0];
$minorVersionPart = $versionParts[1];
Expand Down

0 comments on commit c9c5729

Please sign in to comment.