Fix debug collector + Disable Yii Config plugin #179
Merged
Annotations
10 warnings
src/Debug/QueueDecorator.php#L24
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
public function status(string $id) : JobStatus
{
$result = $this->queue->status($id);
- $this->collector->collectStatus($id, $result);
+
return $result;
}
public function push(MessageInterface $message, string|array|callable|MiddlewarePushInterface ...$middlewareDefinitions) : MessageInterface
|
src/Debug/QueueDecorator.php#L34
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
public function push(MessageInterface $message, string|array|callable|MiddlewarePushInterface ...$middlewareDefinitions) : MessageInterface
{
$message = $this->queue->push($message, ...$middlewareDefinitions);
- $this->collector->collectPush($this->queue->getChannelName(), $message, ...$middlewareDefinitions);
+
return $message;
}
public function run(int $max = 0) : void
|
src/Debug/QueueDecorator.php#L38
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
$this->collector->collectPush($this->queue->getChannelName(), $message, ...$middlewareDefinitions);
return $message;
}
- public function run(int $max = 0) : void
+ public function run(int $max = -1) : void
{
$this->queue->run($max);
}
|
src/Debug/QueueDecorator.php#L38
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
$this->collector->collectPush($this->queue->getChannelName(), $message, ...$middlewareDefinitions);
return $message;
}
- public function run(int $max = 0) : void
+ public function run(int $max = 1) : void
{
$this->queue->run($max);
}
|
src/Exception/AdapterConfiguration/ChannelIncorrectlyConfigured.php#L25
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
* @param int $code
* @param Throwable|null $previous
*/
- public function __construct(string $channel, $definition, int $code = 0, ?Throwable $previous = null)
+ public function __construct(string $channel, $definition, int $code = -1, ?Throwable $previous = null)
{
$adapterClass = AdapterInterface::class;
$realType = get_debug_type($definition);
|
src/Exception/AdapterConfiguration/ChannelIncorrectlyConfigured.php#L25
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
* @param int $code
* @param Throwable|null $previous
*/
- public function __construct(string $channel, $definition, int $code = 0, ?Throwable $previous = null)
+ public function __construct(string $channel, $definition, int $code = 1, ?Throwable $previous = null)
{
$adapterClass = AdapterInterface::class;
$realType = get_debug_type($definition);
|
src/Exception/AdapterConfiguration/ChannelIncorrectlyConfigured.php#L32
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$realType = get_debug_type($definition);
$message = "Channel \"{$channel}\" is not properly configured: definition must return {$adapterClass}, {$realType} returned";
$this->channel = $channel;
- parent::__construct($message, $code, $previous);
+
}
public function getName() : string
{
|
src/Exception/AdapterConfiguration/ChannelNotConfiguredException.php#L16
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
class ChannelNotConfiguredException extends InvalidArgumentException implements FriendlyExceptionInterface
{
private string $channel;
- public function __construct(string $channel, int $code = 0, Throwable $previous = null)
+ public function __construct(string $channel, int $code = -1, Throwable $previous = null)
{
$message = "Queue channel \"{$channel}\" is not properly configured.";
$this->channel = $channel;
|
src/Exception/AdapterConfiguration/ChannelNotConfiguredException.php#L16
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
class ChannelNotConfiguredException extends InvalidArgumentException implements FriendlyExceptionInterface
{
private string $channel;
- public function __construct(string $channel, int $code = 0, Throwable $previous = null)
+ public function __construct(string $channel, int $code = 1, Throwable $previous = null)
{
$message = "Queue channel \"{$channel}\" is not properly configured.";
$this->channel = $channel;
|
src/Exception/AdapterConfiguration/ChannelNotConfiguredException.php#L20
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
{
$message = "Queue channel \"{$channel}\" is not properly configured.";
$this->channel = $channel;
- parent::__construct($message, $code, $previous);
+
}
public function getName() : string
{
|
The logs for this run have expired and are no longer available.
Loading