Release 1.0.2 #41
Annotations
7 warnings
Infection PHP:
src/LogtailHandler.php#L30
Escaped Mutant for Mutator "TrueValue":
@@ @@
* @param int|string|Level|LogLevel::* $level
* @phpstan-param value-of<Level::VALUES>|value-of<Level::NAMES>|Level|LogLevel::* $level
*/
- public function __construct(LogtailClient $client, $level = Logger::DEBUG, bool $bubble = true)
+ public function __construct(LogtailClient $client, $level = Logger::DEBUG, bool $bubble = false)
{
parent::__construct($level, $bubble);
$this->client = $client;
|
Infection PHP:
src/LogtailHandler.php#L32
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
*/
public function __construct(LogtailClient $client, $level = Logger::DEBUG, bool $bubble = true)
{
- parent::__construct($level, $bubble);
+
$this->client = $client;
// __destruct() is not called on fatal errors
register_shutdown_function(fn() => $this->saveClose());
|
Infection PHP:
src/LogtailHandler.php#L36
Escaped Mutant for Mutator "FunctionCallRemoval":
@@ @@
{
parent::__construct($level, $bubble);
$this->client = $client;
- // __destruct() is not called on fatal errors
- register_shutdown_function(fn() => $this->saveClose());
+
}
/**
* @param array<mixed>|LogRecord $record
|
Infection PHP:
src/LogtailHandler.php#L69
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
}
public function close(): void
{
- $this->flush();
+
parent::close();
}
private function saveClose(): void
|
Infection PHP:
src/LogtailHandler.php#L71
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
public function close(): void
{
$this->flush();
- parent::close();
+
}
private function saveClose(): void
{
|
Infection PHP:
src/LogtailHandler.php#L85
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
}
public function reset(): void
{
- $this->flush();
+
parent::reset();
}
protected function getDefaultFormatter(): FormatterInterface
|
Infection PHP:
src/LogtailHandler.php#L87
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
public function reset(): void
{
$this->flush();
- parent::reset();
+
}
protected function getDefaultFormatter(): FormatterInterface
{
|
Loading