chore(master): release 2.0.2 #23
Annotations
10 warnings
app/src/Application/Bootloader/ExceptionHandlerBootloader.php#L37
Escaped Mutant for Mutator "PublicVisibility":
--- Original
+++ New
@@ @@
public function __construct(private readonly ExceptionHandler $handler)
{
}
- public function init(AbstractKernel $kernel) : void
+ protected function init(AbstractKernel $kernel) : void
{
// Register the console renderer, that will be used when the application
// is running in the console.
|
app/src/Application/Bootloader/ExceptionHandlerBootloader.php#L41
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
}
public function init(AbstractKernel $kernel) : void
{
- // Register the console renderer, that will be used when the application
- // is running in the console.
- $this->handler->addRenderer(new ConsoleRenderer());
+
$kernel->running(function () : void {
// Register the JSON renderer, that will be used when the application is
// running in the HTTP context and a JSON response is expected.
|
app/src/Application/Bootloader/ExceptionHandlerBootloader.php#L43
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
// Register the console renderer, that will be used when the application
// is running in the console.
$this->handler->addRenderer(new ConsoleRenderer());
- $kernel->running(function () : void {
- // Register the JSON renderer, that will be used when the application is
- // running in the HTTP context and a JSON response is expected.
- $this->handler->addRenderer(new JsonRenderer());
- });
+
}
public function boot(LoggerReporter $logger, FileReporter $files, AppEnvironment $appEnv) : void
{
|
app/src/Application/Bootloader/ExceptionHandlerBootloader.php#L50
Escaped Mutant for Mutator "PublicVisibility":
--- Original
+++ New
@@ @@
$this->handler->addRenderer(new JsonRenderer());
});
}
- public function boot(LoggerReporter $logger, FileReporter $files, AppEnvironment $appEnv) : void
+ protected function boot(LoggerReporter $logger, FileReporter $files, AppEnvironment $appEnv) : void
{
// Register the logger reporter, that will be used to log the exceptions using
// the logger component.
|
app/src/Application/Bootloader/ExceptionHandlerBootloader.php#L54
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
}
public function boot(LoggerReporter $logger, FileReporter $files, AppEnvironment $appEnv) : void
{
- // Register the logger reporter, that will be used to log the exceptions using
- // the logger component.
- $this->handler->addReporter($logger);
+
// Register the file reporter. It allows you to save detailed information about an exception to a file
// known as snapshot.
if ($appEnv->isLocal()) {
|
app/src/Application/Bootloader/ExceptionHandlerBootloader.php#L58
Escaped Mutant for Mutator "IfNegation":
--- Original
+++ New
@@ @@
$this->handler->addReporter($logger);
// Register the file reporter. It allows you to save detailed information about an exception to a file
// known as snapshot.
- if ($appEnv->isLocal()) {
+ if (!$appEnv->isLocal()) {
$this->handler->addReporter($files);
}
}
}
|
app/src/Application/Bootloader/LoggingBootloader.php#L26
Escaped Mutant for Mutator "PublicVisibility":
--- Original
+++ New
@@ @@
public function __construct(private readonly ConfiguratorInterface $config)
{
}
- public function init(MonologBootloader $monolog) : void
+ protected function init(MonologBootloader $monolog) : void
{
// HTTP level errors
$monolog->addHandler(channel: ErrorHandlerMiddleware::class, handler: $monolog->logRotate(directory('runtime') . 'logs/http.log'));
|
app/src/Application/Bootloader/LoggingBootloader.php#L29
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
}
public function init(MonologBootloader $monolog) : void
{
- // HTTP level errors
- $monolog->addHandler(channel: ErrorHandlerMiddleware::class, handler: $monolog->logRotate(directory('runtime') . 'logs/http.log'));
+
// app level errors
$monolog->addHandler(channel: MonologConfig::DEFAULT_CHANNEL, handler: $monolog->logRotate(filename: directory('runtime') . 'logs/error.log', level: Level::Error, maxFiles: 25, bubble: false));
// debug and info messages via global LoggerInterface
|
app/src/Application/Bootloader/LoggingBootloader.php#L32
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
public function init(MonologBootloader $monolog) : void
{
// HTTP level errors
- $monolog->addHandler(channel: ErrorHandlerMiddleware::class, handler: $monolog->logRotate(directory('runtime') . 'logs/http.log'));
+ $monolog->addHandler(channel: ErrorHandlerMiddleware::class, handler: $monolog->logRotate('logs/http.log' . directory('runtime')));
// app level errors
$monolog->addHandler(channel: MonologConfig::DEFAULT_CHANNEL, handler: $monolog->logRotate(filename: directory('runtime') . 'logs/error.log', level: Level::Error, maxFiles: 25, bubble: false));
// debug and info messages via global LoggerInterface
|
app/src/Application/Bootloader/LoggingBootloader.php#L32
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
public function init(MonologBootloader $monolog) : void
{
// HTTP level errors
- $monolog->addHandler(channel: ErrorHandlerMiddleware::class, handler: $monolog->logRotate(directory('runtime') . 'logs/http.log'));
+ $monolog->addHandler(channel: ErrorHandlerMiddleware::class, handler: $monolog->logRotate('logs/http.log'));
// app level errors
$monolog->addHandler(channel: MonologConfig::DEFAULT_CHANNEL, handler: $monolog->logRotate(filename: directory('runtime') . 'logs/error.log', level: Level::Error, maxFiles: 25, bubble: false));
// debug and info messages via global LoggerInterface
|
This job succeeded
Loading