Add error code & show function arguments #742
Annotations
11 warnings
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Run roave infection.:
src/ErrorHandler.php#L53
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
* @param EventDispatcherInterface|null $eventDispatcher Event dispatcher for error events.
* @param int $exitShutdownHandlerDepth Depth of the exit() shutdown handler to ensure it's executed last.
*/
- public function __construct(private LoggerInterface $logger, private ThrowableRendererInterface $defaultRenderer, private ?EventDispatcherInterface $eventDispatcher = null, private int $exitShutdownHandlerDepth = 2)
+ public function __construct(private LoggerInterface $logger, private ThrowableRendererInterface $defaultRenderer, private ?EventDispatcherInterface $eventDispatcher = null, private int $exitShutdownHandlerDepth = 1)
{
}
/**
|
Run roave infection.:
src/ErrorHandler.php#L53
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
* @param EventDispatcherInterface|null $eventDispatcher Event dispatcher for error events.
* @param int $exitShutdownHandlerDepth Depth of the exit() shutdown handler to ensure it's executed last.
*/
- public function __construct(private LoggerInterface $logger, private ThrowableRendererInterface $defaultRenderer, private ?EventDispatcherInterface $eventDispatcher = null, private int $exitShutdownHandlerDepth = 2)
+ public function __construct(private LoggerInterface $logger, private ThrowableRendererInterface $defaultRenderer, private ?EventDispatcherInterface $eventDispatcher = null, private int $exitShutdownHandlerDepth = 3)
{
}
/**
|
Run roave infection.:
src/ErrorHandler.php#L71
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
{
$renderer ??= $this->defaultRenderer;
try {
- $this->logger->error($t->getMessage(), ['throwable' => $t]);
+ $this->logger->error($t->getMessage(), []);
return $this->debug ? $renderer->renderVerbose($t, $request) : $renderer->render($t, $request);
} catch (Throwable $t) {
return new ErrorData((string) $t);
|
Run roave infection.:
src/ErrorHandler.php#L71
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
{
$renderer ??= $this->defaultRenderer;
try {
- $this->logger->error($t->getMessage(), ['throwable' => $t]);
+
return $this->debug ? $renderer->renderVerbose($t, $request) : $renderer->render($t, $request);
} catch (Throwable $t) {
return new ErrorData((string) $t);
|
Run roave infection.:
src/ErrorHandler.php#L111
Escaped Mutant for Mutator "GreaterThan":
--- Original
+++ New
@@ @@
if ($this->enabled) {
return;
}
- if ($this->memoryReserveSize > 0) {
+ if ($this->memoryReserveSize >= 0) {
$this->memoryReserve = str_repeat('x', $this->memoryReserveSize);
}
$this->initializeOnce();
|
Run roave infection.:
src/ErrorHandler.php#L111
Escaped Mutant for Mutator "GreaterThanNegotiation":
--- Original
+++ New
@@ @@
if ($this->enabled) {
return;
}
- if ($this->memoryReserveSize > 0) {
+ if ($this->memoryReserveSize <= 0) {
$this->memoryReserve = str_repeat('x', $this->memoryReserveSize);
}
$this->initializeOnce();
|
Run roave infection.:
src/ErrorHandler.php#L115
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
if ($this->memoryReserveSize > 0) {
$this->memoryReserve = str_repeat('x', $this->memoryReserveSize);
}
- $this->initializeOnce();
+
// Handles throwable that isn't caught otherwise, echo output and exit.
set_exception_handler(function (Throwable $t) : void {
if (!$this->enabled) {
|
Run roave infection.:
src/ErrorHandler.php#L118
Escaped Mutant for Mutator "FunctionCallRemoval":
--- Original
+++ New
@@ @@
$this->memoryReserve = str_repeat('x', $this->memoryReserveSize);
}
$this->initializeOnce();
- // Handles throwable that isn't caught otherwise, echo output and exit.
- set_exception_handler(function (Throwable $t) : void {
- if (!$this->enabled) {
- return;
- }
- $this->renderThrowableAndTerminate($t);
- });
+
// Handles PHP execution errors such as warnings and notices.
set_error_handler(function (int $severity, string $message, string $file, int $line) : bool {
if (!$this->enabled) {
|
Run roave infection.:
src/ErrorHandler.php#L132
Escaped Mutant for Mutator "BitwiseAnd":
--- Original
+++ New
@@ @@
if (!$this->enabled) {
return false;
}
- if (!(error_reporting() & $severity)) {
+ if (!(error_reporting() | $severity)) {
// This error code is not included in error_reporting.
return true;
}
|
Run roave infection.:
src/ErrorHandler.php#L137
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
// This error code is not included in error_reporting.
return true;
}
- $backtrace = debug_backtrace(0);
+ $backtrace = debug_backtrace(-1);
array_shift($backtrace);
throw new ErrorException($message, $severity, $severity, $file, $line, null, $backtrace);
});
|
Set up job
1s
1s
Error:
This step has been truncated due to its large size. Download the full logs from the menu
once the workflow run has completed.
Checkout.
0s
0s
Error:
This step has been truncated due to its large size. Download the full logs from the menu
once the workflow run has completed.
Install PHP with extensions.
4s
4s
Error:
This step has been truncated due to its large size. Download the full logs from the menu
once the workflow run has completed.
Determine composer cache directory on Linux.
0s
0s
Error:
This step has been truncated due to its large size. Download the full logs from the menu
once the workflow run has completed.
Cache dependencies installed with composer.
1s
1s
Error:
This step has been truncated due to its large size. Download the full logs from the menu
once the workflow run has completed.
Update composer.
0s
0s
Error:
This step has been truncated due to its large size. Download the full logs from the menu
once the workflow run has completed.
Install dependencies with composer.
5s
5s
Error:
This step has been truncated due to its large size. Download the full logs from the menu
once the workflow run has completed.
Run roave infection.
50s
50s
Error:
This step has been truncated due to its large size. Download the full logs from the menu
once the workflow run has completed.
Post Cache dependencies installed with composer.
0s
0s
Error:
This step has been truncated due to its large size. Download the full logs from the menu
once the workflow run has completed.
Post Checkout.
0s
0s
Error:
This step has been truncated due to its large size. Download the full logs from the menu
once the workflow run has completed.
Complete job
0s
0s
Error:
This step has been truncated due to its large size. Download the full logs from the menu
once the workflow run has completed.
Loading