Skip to content

Commit 9f4ec12

Browse files
authored
Merge pull request #12 from ahacart-adexos/hotfix/fix_type
Fix type to avoid type error due to strict type
2 parents b701f61 + 85818a9 commit 9f4ec12

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Handler/RotatingFileHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function getInstance(): HandlerInterface
7272
$this->directoryList->getPath(DirectoryList::VAR_DIR),
7373
$this->scopeConfig->getValue($this->filenamePath)
7474
),
75-
$this->scopeConfig->getValue($this->maxFilesPath),
75+
(int) $this->scopeConfig->getValue($this->maxFilesPath),
7676
$this->scopeConfig->getValue($this->levelPath)
7777
);
7878
}

Handler/SlackHandler.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,12 @@ public function getInstance(): HandlerInterface
105105
$this->scopeConfig->getValue($this->tokenPath),
106106
$this->scopeConfig->getValue($this->channelPath),
107107
$this->scopeConfig->getValue($this->usernamePath),
108-
$this->scopeConfig->getValue($this->useAttachmentPath),
108+
$this->scopeConfig->isSetFlag($this->useAttachmentPath),
109109
$this->scopeConfig->getValue($this->iconEmojiPath),
110110
$this->scopeConfig->getValue($this->levelPath),
111-
$this->scopeConfig->getValue($this->bubblePath),
112-
$this->scopeConfig->getValue($this->useShortAttachmentPath),
113-
$this->scopeConfig->getValue($this->includeContextAndExtraPath)
111+
$this->scopeConfig->isSetFlag($this->bubblePath),
112+
$this->scopeConfig->isSetFlag($this->useShortAttachmentPath),
113+
$this->scopeConfig->isSetFlag($this->includeContextAndExtraPath)
114114
);
115115
}
116116

0 commit comments

Comments
 (0)