fix(ci): skip infection on php 8.1 (unsupported) #86
Annotations
2 errors and 7 warnings
|
Run infection --threads=4 --logger-github --coverage=phpunit
The operation was canceled.
|
Run infection --threads=4 --logger-github --coverage=phpunit:
src/ResponseAdapter/SymfonyHttpFoundationResponseAdapter.php#L78
Escaped Mutant for Mutator "InstanceOf_":
@@ @@
}
public function getContent(): string
{
- if ($this->response instanceof StreamedResponse || $this->response instanceof BinaryFileResponse) {
+ if (true || $this->response instanceof BinaryFileResponse) {
if (!isset($this->content)) {
assert($obLevel = ob_get_level() >= 0);
if (function_exists('Safe\ob_start')) {
|
Run infection --threads=4 --logger-github --coverage=phpunit:
src/ResponseAdapter/SymfonyHttpFoundationResponseAdapter.php#L78
Escaped Mutant for Mutator "InstanceOf_":
@@ @@
}
public function getContent(): string
{
- if ($this->response instanceof StreamedResponse || $this->response instanceof BinaryFileResponse) {
+ if ($this->response instanceof StreamedResponse || true) {
if (!isset($this->content)) {
assert($obLevel = ob_get_level() >= 0);
if (function_exists('Safe\ob_start')) {
|
Run infection --threads=4 --logger-github --coverage=phpunit:
src/ResponseAdapter/SymfonyHttpFoundationResponseAdapter.php#L78
Escaped Mutant for Mutator "LogicalOrAllSubExprNegation":
@@ @@
}
public function getContent(): string
{
- if ($this->response instanceof StreamedResponse || $this->response instanceof BinaryFileResponse) {
+ if (!$this->response instanceof StreamedResponse || !$this->response instanceof BinaryFileResponse) {
if (!isset($this->content)) {
assert($obLevel = ob_get_level() >= 0);
if (function_exists('Safe\ob_start')) {
|
Run infection --threads=4 --logger-github --coverage=phpunit:
src/ResponseAdapter/SymfonyHttpFoundationResponseAdapter.php#L81
Escaped Mutant for Mutator "IfNegation":
@@ @@
if ($this->response instanceof StreamedResponse || $this->response instanceof BinaryFileResponse) {
if (!isset($this->content)) {
assert($obLevel = ob_get_level() >= 0);
- if (function_exists('Safe\ob_start')) {
+ if (!function_exists('Safe\ob_start')) {
\Safe\ob_start();
} else {
ob_start();
|
Run infection --threads=4 --logger-github --coverage=phpunit:
src/Urn/Urn.php#L37
Escaped Mutant for Mutator "InstanceOf_":
@@ @@
// phpcs:ignore SlevomatCodingStandard.Classes.RequireConstructorPropertyPromotion.RequiredConstructorPropertyPromotion
public function __construct(mixed $idOrUrn, string|null $class = null, string|Stringable|UrnGeneratorInterface|null $owner = null, string|null $tenant = null, string|null $partition = null, string|null $domain = null)
{
- if ($idOrUrn instanceof self) {
+ if (false) {
$this->id = $idOrUrn->id;
$this->class = $idOrUrn->class;
$this->owner = $idOrUrn->owner;
|
Run infection --threads=4 --logger-github --coverage=phpunit:
src/Urn/Urn.php#L49
Escaped Mutant for Mutator "InstanceOf_":
@@ @@
return;
}
if ($owner !== null) {
- if ($owner instanceof UrnGeneratorInterface) {
+ if (true) {
$owner = $owner->getUrn()->id;
}
if (!is_string($owner)) {
|
Run infection --threads=4 --logger-github --coverage=phpunit:
src/Urn/UrnConverter.php#L101
Escaped Mutant for Mutator "Break_":
@@ @@
$manager = $registry->getManagerForClass($class);
if ($manager !== null) {
$om = $manager;
- break;
+ continue;
}
}
assert($om instanceof ObjectManager);
|
Loading