Skip to content

chore(deps): update dependency phpstan/phpstan to v2.1.4 (#205) #528

chore(deps): update dependency phpstan/phpstan to v2.1.4 (#205)

chore(deps): update dependency phpstan/phpstan to v2.1.4 (#205) #528

Triggered via push February 10, 2025 14:06
Status Success
Total duration 3m 12s
Artifacts

infection.yaml

on: push
Fit to window
Zoom out
Zoom in

Annotations

13 warnings
Infection
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Infection
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Infection
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Infection: src/Clients/Consumer/KafkaConsumer.php#L125
Escaped Mutant for Mutator "NotIdentical": @@ @@ $consumerRecords = new ConsumerRecords(); $this->doStart($timeoutMs, function (Message $message) use ($maxBatchSize, $timeoutMs, $batchTime, $processRecord, $onBatchProcessed, $consumerRecords): void { $consumerRecords->add($message); - if ($processRecord !== null) { + if ($processRecord === null) { $processRecord($message); } if ($consumerRecords->count() === $maxBatchSize) {
Infection: src/Clients/Consumer/KafkaConsumer.php#L126
Escaped Mutant for Mutator "FunctionCallRemoval": @@ @@ $this->doStart($timeoutMs, function (Message $message) use ($maxBatchSize, $timeoutMs, $batchTime, $processRecord, $onBatchProcessed, $consumerRecords): void { $consumerRecords->add($message); if ($processRecord !== null) { - $processRecord($message); + } if ($consumerRecords->count() === $maxBatchSize) { if ($onBatchProcessed !== null && !$consumerRecords->isEmpty()) {
Infection: src/Clients/Consumer/KafkaConsumer.php#L130
Escaped Mutant for Mutator "LogicalAnd": @@ @@ $processRecord($message); } if ($consumerRecords->count() === $maxBatchSize) { - if ($onBatchProcessed !== null && !$consumerRecords->isEmpty()) { + if ($onBatchProcessed !== null || !$consumerRecords->isEmpty()) { $onBatchProcessed($consumerRecords); } $consumerRecords->clear();
Infection: src/Clients/Consumer/KafkaConsumer.php#L134
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ if ($onBatchProcessed !== null && !$consumerRecords->isEmpty()) { $onBatchProcessed($consumerRecords); } - $consumerRecords->clear(); + $batchTime->reset($timeoutMs, new DateTimeImmutable()); return; }
Infection: src/Clients/Consumer/KafkaConsumer.php#L135
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ $onBatchProcessed($consumerRecords); } $consumerRecords->clear(); - $batchTime->reset($timeoutMs, new DateTimeImmutable()); + return; } $this->checkBatchTimedOut($timeoutMs, $batchTime, $onBatchProcessed, $consumerRecords)();
Infection: src/Clients/Consumer/KafkaConsumer.php#L140
Escaped Mutant for Mutator "FunctionCallRemoval": @@ @@ $batchTime->reset($timeoutMs, new DateTimeImmutable()); return; } - $this->checkBatchTimedOut($timeoutMs, $batchTime, $onBatchProcessed, $consumerRecords)(); + }, $this->checkBatchTimedOut($timeoutMs, $batchTime, $onBatchProcessed, $consumerRecords), $this->checkBatchTimedOut($timeoutMs, $batchTime, $onBatchProcessed, $consumerRecords)); } /**
Infection: src/Clients/Consumer/KafkaConsumer.php#L158
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ */ private function doStart(int $timeoutMs, callable $onSuccess, callable|null $onPartitionEof = null, callable|null $onTimedOut = null): void { - $this->registerSignals($this->shouldRun); + while ($this->shouldRun) { $message = $this->consume($timeoutMs); switch ($message->err) {
Infection: src/Clients/Consumer/KafkaConsumer.php#L185
Escaped Mutant for Mutator "ArrayItemRemoval": @@ @@ break; default: $exception = IncompatibleStatus::fromMessage($message); - $this->logger->error($exception->getMessage(), ['exception' => $exception]); + $this->logger->error($exception->getMessage(), []); } pcntl_signal_dispatch(); }
Infection: src/Clients/Consumer/KafkaConsumer.php#L185
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ break; default: $exception = IncompatibleStatus::fromMessage($message); - $this->logger->error($exception->getMessage(), ['exception' => $exception]); + } pcntl_signal_dispatch(); }
Infection: src/Clients/Consumer/KafkaConsumer.php#L188
Escaped Mutant for Mutator "FunctionCallRemoval": @@ @@ $exception = IncompatibleStatus::fromMessage($message); $this->logger->error($exception->getMessage(), ['exception' => $exception]); } - pcntl_signal_dispatch(); + } $this->degisterSignals(); }