Skip to content

Commit

Permalink
phpstan fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
oliwierptak committed Aug 3, 2023
1 parent ba5300c commit 9e8683a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ parameters:
- tests/bootstrap.php
excludePaths:
- tests/*
- src/Logger/Configurator/Plugin/*
- src/Shared/LoggerBasic/Configurator/Plugin/*
4 changes: 2 additions & 2 deletions src/LoggerBasic/Plugin/Stream/StreamLoggerPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ public function buildHandler(): HandlerInterface
return new StreamHandler(
$this->configurator->requireStreamLocation(),
Logger::toMonologLevel($this->configurator->requireLogLevel()),
$this->configurator->shouldBubble(),
(bool)$this->configurator->shouldBubble(),
$this->configurator->getFilePermission(),
$this->configurator->useLocking()
(bool)$this->configurator->useLocking()
);
}

Expand Down
4 changes: 2 additions & 2 deletions src/LoggerBasic/Plugin/Syslog/SyslogLoggerPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ public function buildHandler(): HandlerInterface
$this->configurator->requireIdent(),
$this->configurator->requireFacility(),
Logger::toMonologLevel($this->configurator->requireLogLevel()),
$this->configurator->shouldBubble(),
$this->configurator->getLogopts(),
(bool)$this->configurator->shouldBubble(),
(int)$this->configurator->getLogopts(),
);
}

Expand Down

0 comments on commit 9e8683a

Please sign in to comment.