Skip to content

Commit

Permalink
Prepare File log for php8
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
  • Loading branch information
kesselb committed Jan 7, 2021
1 parent 2dd04f7 commit 40631f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/private/Log/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class File extends LogDetails implements IWriter, IFileBased {
/** @var SystemConfig */
private $config;

public function __construct(string $path, string $fallbackPath = '', SystemConfig $config) {
public function __construct(string $path, SystemConfig $config, string $fallbackPath = '') {
parent::__construct($config);
$this->logFile = $path;
if (!file_exists($this->logFile)) {
Expand Down
2 changes: 1 addition & 1 deletion lib/private/Log/LogFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,6 @@ protected function buildLogFile(string $logFile = ''):File {
}
$fallback = $defaultLogFile !== $logFile ? $defaultLogFile : '';

return new File($logFile, $fallback, $this->systemConfig);
return new File($logFile, $this->systemConfig, $fallback);
}
}

0 comments on commit 40631f0

Please sign in to comment.