Skip to content

update php versions support #168

update php versions support

update php versions support #168

Triggered via pull request December 2, 2023 12:59
@kpicazakpicaza
synchronize #63
php-83
Status Success
Total duration 42s
Artifacts

mutation-tests.yml

on: pull_request
Matrix: Mutation tests
Fit to window
Zoom out
Zoom in

Annotations

28 warnings
Mutation tests (locked, 8.2, ubuntu-latest)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Mutation tests (locked, 8.2, ubuntu-latest): src/Read/ChainToggleStrategyFactory.php#L60
Escaped Mutant for Mutator "UnwrapArrayUnique": --- Original +++ New @@ @@ } public function types() : array { - return array_unique(array_merge(...array_map(static fn(ToggleStrategyFactory $strategyFactory) => $strategyFactory->types(), $this->toggleStrategyFactories))); + return array_merge(...array_map(static fn(ToggleStrategyFactory $strategyFactory) => $strategyFactory->types(), $this->toggleStrategyFactories)); } }
Mutation tests (locked, 8.2, ubuntu-latest): src/Write/Feature.php#L50
Escaped Mutant for Mutator "ArrayOneItem": --- Original +++ New @@ @@ { $events = $this->events; $this->events = []; - return $events; + return count($events) > 1 ? array_slice($events, 0, 1, true) : $events; } public static function withId(FeatureId $featureId) : self {
Mutation tests (locked, 8.2, ubuntu-latest): src/Write/Feature.php#L108
Escaped Mutant for Mutator "UnwrapArrayValues": --- Original +++ New @@ @@ /** @return Strategy[] */ public function strategies() : array { - return array_values($this->strategies); + return $this->strategies; } /** @return WriteFeature */ public function jsonSerialize() : array
Mutation tests (locked, 8.2, ubuntu-latest): src/Write/Payload.php#L32
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ public static function fromJsonString(string $jsonPayload) : self { /** @var Criteria $payload */ - $payload = json_decode($jsonPayload, true, 16, JSON_THROW_ON_ERROR); + $payload = json_decode($jsonPayload, true, 15, JSON_THROW_ON_ERROR); return self::fromArray($payload); } /** @return Criteria */
Mutation tests (locked, 8.2, ubuntu-latest): src/Write/Payload.php#L32
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ public static function fromJsonString(string $jsonPayload) : self { /** @var Criteria $payload */ - $payload = json_decode($jsonPayload, true, 16, JSON_THROW_ON_ERROR); + $payload = json_decode($jsonPayload, true, 17, JSON_THROW_ON_ERROR); return self::fromArray($payload); } /** @return Criteria */
Mutation tests (locked, 8.2, ubuntu-latest): src/Write/Strategy.php#L54
Escaped Mutant for Mutator "UnwrapArrayMap": --- Original +++ New @@ @@ /** @return WriteStrategy */ public function jsonSerialize() : array { - return ['strategy_id' => $this->strategyId->value(), 'strategy_type' => $this->type()->value(), 'segments' => array_map(static fn(Segment $segment) => $segment->jsonSerialize(), $this->segments())]; + return ['strategy_id' => $this->strategyId->value(), 'strategy_type' => $this->type()->value(), 'segments' => $this->segments()]; } }
Mutation tests (locked, 8.1, ubuntu-latest)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Mutation tests (locked, 8.1, ubuntu-latest): src/Read/ChainToggleStrategyFactory.php#L60
Escaped Mutant for Mutator "UnwrapArrayUnique": --- Original +++ New @@ @@ } public function types() : array { - return array_unique(array_merge(...array_map(static fn(ToggleStrategyFactory $strategyFactory) => $strategyFactory->types(), $this->toggleStrategyFactories))); + return array_merge(...array_map(static fn(ToggleStrategyFactory $strategyFactory) => $strategyFactory->types(), $this->toggleStrategyFactories)); } }
Mutation tests (locked, 8.1, ubuntu-latest): src/Write/Feature.php#L50
Escaped Mutant for Mutator "ArrayOneItem": --- Original +++ New @@ @@ { $events = $this->events; $this->events = []; - return $events; + return count($events) > 1 ? array_slice($events, 0, 1, true) : $events; } public static function withId(FeatureId $featureId) : self {
Mutation tests (locked, 8.1, ubuntu-latest): src/Write/Feature.php#L108
Escaped Mutant for Mutator "UnwrapArrayValues": --- Original +++ New @@ @@ /** @return Strategy[] */ public function strategies() : array { - return array_values($this->strategies); + return $this->strategies; } /** @return WriteFeature */ public function jsonSerialize() : array
Mutation tests (locked, 8.1, ubuntu-latest): src/Write/Payload.php#L32
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ public static function fromJsonString(string $jsonPayload) : self { /** @var Criteria $payload */ - $payload = json_decode($jsonPayload, true, 16, JSON_THROW_ON_ERROR); + $payload = json_decode($jsonPayload, true, 15, JSON_THROW_ON_ERROR); return self::fromArray($payload); } /** @return Criteria */
Mutation tests (locked, 8.1, ubuntu-latest): src/Write/Payload.php#L32
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ public static function fromJsonString(string $jsonPayload) : self { /** @var Criteria $payload */ - $payload = json_decode($jsonPayload, true, 16, JSON_THROW_ON_ERROR); + $payload = json_decode($jsonPayload, true, 17, JSON_THROW_ON_ERROR); return self::fromArray($payload); } /** @return Criteria */
Mutation tests (locked, 8.1, ubuntu-latest): src/Write/Strategy.php#L54
Escaped Mutant for Mutator "UnwrapArrayMap": --- Original +++ New @@ @@ /** @return WriteStrategy */ public function jsonSerialize() : array { - return ['strategy_id' => $this->strategyId->value(), 'strategy_type' => $this->type()->value(), 'segments' => array_map(static fn(Segment $segment) => $segment->jsonSerialize(), $this->segments())]; + return ['strategy_id' => $this->strategyId->value(), 'strategy_type' => $this->type()->value(), 'segments' => $this->segments()]; } }
Mutation tests (locked, 8.0, ubuntu-latest)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Mutation tests (locked, 8.0, ubuntu-latest): src/Read/ChainToggleStrategyFactory.php#L60
Escaped Mutant for Mutator "UnwrapArrayUnique": --- Original +++ New @@ @@ } public function types() : array { - return array_unique(array_merge(...array_map(static fn(ToggleStrategyFactory $strategyFactory) => $strategyFactory->types(), $this->toggleStrategyFactories))); + return array_merge(...array_map(static fn(ToggleStrategyFactory $strategyFactory) => $strategyFactory->types(), $this->toggleStrategyFactories)); } }
Mutation tests (locked, 8.0, ubuntu-latest): src/Write/Feature.php#L50
Escaped Mutant for Mutator "ArrayOneItem": --- Original +++ New @@ @@ { $events = $this->events; $this->events = []; - return $events; + return count($events) > 1 ? array_slice($events, 0, 1, true) : $events; } public static function withId(FeatureId $featureId) : self {
Mutation tests (locked, 8.0, ubuntu-latest): src/Write/Feature.php#L108
Escaped Mutant for Mutator "UnwrapArrayValues": --- Original +++ New @@ @@ /** @return Strategy[] */ public function strategies() : array { - return array_values($this->strategies); + return $this->strategies; } /** @return WriteFeature */ public function jsonSerialize() : array
Mutation tests (locked, 8.0, ubuntu-latest): src/Write/Payload.php#L32
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ public static function fromJsonString(string $jsonPayload) : self { /** @var Criteria $payload */ - $payload = json_decode($jsonPayload, true, 16, JSON_THROW_ON_ERROR); + $payload = json_decode($jsonPayload, true, 15, JSON_THROW_ON_ERROR); return self::fromArray($payload); } /** @return Criteria */
Mutation tests (locked, 8.0, ubuntu-latest): src/Write/Payload.php#L32
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ public static function fromJsonString(string $jsonPayload) : self { /** @var Criteria $payload */ - $payload = json_decode($jsonPayload, true, 16, JSON_THROW_ON_ERROR); + $payload = json_decode($jsonPayload, true, 17, JSON_THROW_ON_ERROR); return self::fromArray($payload); } /** @return Criteria */
Mutation tests (locked, 8.0, ubuntu-latest): src/Write/Strategy.php#L54
Escaped Mutant for Mutator "UnwrapArrayMap": --- Original +++ New @@ @@ /** @return WriteStrategy */ public function jsonSerialize() : array { - return ['strategy_id' => $this->strategyId->value(), 'strategy_type' => $this->type()->value(), 'segments' => array_map(static fn(Segment $segment) => $segment->jsonSerialize(), $this->segments())]; + return ['strategy_id' => $this->strategyId->value(), 'strategy_type' => $this->type()->value(), 'segments' => $this->segments()]; } }
Mutation tests (locked, 8.3, ubuntu-latest)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Mutation tests (locked, 8.3, ubuntu-latest): src/Read/ChainToggleStrategyFactory.php#L60
Escaped Mutant for Mutator "UnwrapArrayUnique": --- Original +++ New @@ @@ } public function types() : array { - return array_unique(array_merge(...array_map(static fn(ToggleStrategyFactory $strategyFactory) => $strategyFactory->types(), $this->toggleStrategyFactories))); + return array_merge(...array_map(static fn(ToggleStrategyFactory $strategyFactory) => $strategyFactory->types(), $this->toggleStrategyFactories)); } }
Mutation tests (locked, 8.3, ubuntu-latest): src/Write/Feature.php#L50
Escaped Mutant for Mutator "ArrayOneItem": --- Original +++ New @@ @@ { $events = $this->events; $this->events = []; - return $events; + return count($events) > 1 ? array_slice($events, 0, 1, true) : $events; } public static function withId(FeatureId $featureId) : self {
Mutation tests (locked, 8.3, ubuntu-latest): src/Write/Feature.php#L108
Escaped Mutant for Mutator "UnwrapArrayValues": --- Original +++ New @@ @@ /** @return Strategy[] */ public function strategies() : array { - return array_values($this->strategies); + return $this->strategies; } /** @return WriteFeature */ public function jsonSerialize() : array
Mutation tests (locked, 8.3, ubuntu-latest): src/Write/Payload.php#L32
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ public static function fromJsonString(string $jsonPayload) : self { /** @var Criteria $payload */ - $payload = json_decode($jsonPayload, true, 16, JSON_THROW_ON_ERROR); + $payload = json_decode($jsonPayload, true, 15, JSON_THROW_ON_ERROR); return self::fromArray($payload); } /** @return Criteria */
Mutation tests (locked, 8.3, ubuntu-latest): src/Write/Payload.php#L32
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ public static function fromJsonString(string $jsonPayload) : self { /** @var Criteria $payload */ - $payload = json_decode($jsonPayload, true, 16, JSON_THROW_ON_ERROR); + $payload = json_decode($jsonPayload, true, 17, JSON_THROW_ON_ERROR); return self::fromArray($payload); } /** @return Criteria */
Mutation tests (locked, 8.3, ubuntu-latest): src/Write/Strategy.php#L54
Escaped Mutant for Mutator "UnwrapArrayMap": --- Original +++ New @@ @@ /** @return WriteStrategy */ public function jsonSerialize() : array { - return ['strategy_id' => $this->strategyId->value(), 'strategy_type' => $this->type()->value(), 'segments' => array_map(static fn(Segment $segment) => $segment->jsonSerialize(), $this->segments())]; + return ['strategy_id' => $this->strategyId->value(), 'strategy_type' => $this->type()->value(), 'segments' => $this->segments()]; } }