Skip to content

Commit

Permalink
Fixed possible type error at batch-mode calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
fulopattila122 committed Aug 26, 2024
1 parent dcb16b3 commit 48bd0f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Extended PSR Logger Changelog

## Unreleased
##### 2024-XX-YY

- Fixed possible type error when passing a value to the batch mode option like `--batch-mode=1`

## 3.1.0
##### 2024-01-25

Expand Down
2 changes: 1 addition & 1 deletion src/Utils/Laravel/HasContextualLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,6 @@ private function isInBatchMode(): bool
{
$optionName = property_exists($this, 'batchModeOptionName') ? $this->batchModeOptionName : 'batch-mode';

return $this->option($optionName);
return (bool) $this->option($optionName);
}
}

0 comments on commit 48bd0f7

Please sign in to comment.