Skip to content

Parameter name binding #671

Parameter name binding

Parameter name binding #671

Triggered via pull request February 23, 2024 07:38
Status Failure
Total duration 1m 5s
Artifacts

mutation.yml

on: pull_request
Matrix: mutation / roave-infection
Fit to window
Zoom out
Zoom in

Annotations

1 error and 10 warnings
mutation / PHP 8.3-ubuntu-latest
Process completed with exit code 1.
mutation / PHP 8.3-ubuntu-latest: src/DefinitionStorage.php#L108
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ if (isset($this->definitions[$id])) { return true; } - if ($parameterName !== null && (isset($this->definitions[$typedParameterName = $id . ' $' . $parameterName]) || isset($this->definitions[$typedParameterName = '$' . $parameterName])) && !empty($buildingClass = array_key_last($building)) && class_exists($buildingClass)) { + if ($parameterName !== null && (isset($this->definitions[$typedParameterName = ' $' . $id . $parameterName]) || isset($this->definitions[$typedParameterName = '$' . $parameterName])) && !empty($buildingClass = array_key_last($building)) && class_exists($buildingClass)) { $definition = $this->definitions[$buildingClass] ?? null; $temporaryDefinition = ArrayDefinition::fromConfig([ArrayDefinition::CLASS_NAME => $buildingClass, ArrayDefinition::CONSTRUCTOR => [$parameterName => Reference::to($this->definitions[$typedParameterName])]]); if ($definition instanceof ArrayDefinition) {
mutation / PHP 8.3-ubuntu-latest: src/DefinitionStorage.php#L108
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ if (isset($this->definitions[$id])) { return true; } - if ($parameterName !== null && (isset($this->definitions[$typedParameterName = $id . ' $' . $parameterName]) || isset($this->definitions[$typedParameterName = '$' . $parameterName])) && !empty($buildingClass = array_key_last($building)) && class_exists($buildingClass)) { + if ($parameterName !== null && (isset($this->definitions[$typedParameterName = ' $' . $parameterName]) || isset($this->definitions[$typedParameterName = '$' . $parameterName])) && !empty($buildingClass = array_key_last($building)) && class_exists($buildingClass)) { $definition = $this->definitions[$buildingClass] ?? null; $temporaryDefinition = ArrayDefinition::fromConfig([ArrayDefinition::CLASS_NAME => $buildingClass, ArrayDefinition::CONSTRUCTOR => [$parameterName => Reference::to($this->definitions[$typedParameterName])]]); if ($definition instanceof ArrayDefinition) {
mutation / PHP 8.3-ubuntu-latest: src/DefinitionStorage.php#L108
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ if (isset($this->definitions[$id])) { return true; } - if ($parameterName !== null && (isset($this->definitions[$typedParameterName = $id . ' $' . $parameterName]) || isset($this->definitions[$typedParameterName = '$' . $parameterName])) && !empty($buildingClass = array_key_last($building)) && class_exists($buildingClass)) { + if ($parameterName !== null && (isset($this->definitions[$typedParameterName = $id . $parameterName]) || isset($this->definitions[$typedParameterName = '$' . $parameterName])) && !empty($buildingClass = array_key_last($building)) && class_exists($buildingClass)) { $definition = $this->definitions[$buildingClass] ?? null; $temporaryDefinition = ArrayDefinition::fromConfig([ArrayDefinition::CLASS_NAME => $buildingClass, ArrayDefinition::CONSTRUCTOR => [$parameterName => Reference::to($this->definitions[$typedParameterName])]]); if ($definition instanceof ArrayDefinition) {
mutation / PHP 8.3-ubuntu-latest: src/DefinitionStorage.php#L108
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ if (isset($this->definitions[$id])) { return true; } - if ($parameterName !== null && (isset($this->definitions[$typedParameterName = $id . ' $' . $parameterName]) || isset($this->definitions[$typedParameterName = '$' . $parameterName])) && !empty($buildingClass = array_key_last($building)) && class_exists($buildingClass)) { + if ($parameterName !== null && (isset($this->definitions[$typedParameterName = $id . $parameterName . ' $']) || isset($this->definitions[$typedParameterName = '$' . $parameterName])) && !empty($buildingClass = array_key_last($building)) && class_exists($buildingClass)) { $definition = $this->definitions[$buildingClass] ?? null; $temporaryDefinition = ArrayDefinition::fromConfig([ArrayDefinition::CLASS_NAME => $buildingClass, ArrayDefinition::CONSTRUCTOR => [$parameterName => Reference::to($this->definitions[$typedParameterName])]]); if ($definition instanceof ArrayDefinition) {
mutation / PHP 8.3-ubuntu-latest: src/DefinitionStorage.php#L108
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ if (isset($this->definitions[$id])) { return true; } - if ($parameterName !== null && (isset($this->definitions[$typedParameterName = $id . ' $' . $parameterName]) || isset($this->definitions[$typedParameterName = '$' . $parameterName])) && !empty($buildingClass = array_key_last($building)) && class_exists($buildingClass)) { + if ($parameterName !== null && (isset($this->definitions[$typedParameterName = $id . ' $']) || isset($this->definitions[$typedParameterName = '$' . $parameterName])) && !empty($buildingClass = array_key_last($building)) && class_exists($buildingClass)) { $definition = $this->definitions[$buildingClass] ?? null; $temporaryDefinition = ArrayDefinition::fromConfig([ArrayDefinition::CLASS_NAME => $buildingClass, ArrayDefinition::CONSTRUCTOR => [$parameterName => Reference::to($this->definitions[$typedParameterName])]]); if ($definition instanceof ArrayDefinition) {
mutation / PHP 8.3-ubuntu-latest: src/DefinitionStorage.php#L108
Escaped Mutant for Mutator "LogicalOr": --- Original +++ New @@ @@ if (isset($this->definitions[$id])) { return true; } - if ($parameterName !== null && (isset($this->definitions[$typedParameterName = $id . ' $' . $parameterName]) || isset($this->definitions[$typedParameterName = '$' . $parameterName])) && !empty($buildingClass = array_key_last($building)) && class_exists($buildingClass)) { + if ($parameterName !== null && (isset($this->definitions[$typedParameterName = $id . ' $' . $parameterName]) && isset($this->definitions[$typedParameterName = '$' . $parameterName])) && !empty($buildingClass = array_key_last($building)) && class_exists($buildingClass)) { $definition = $this->definitions[$buildingClass] ?? null; $temporaryDefinition = ArrayDefinition::fromConfig([ArrayDefinition::CLASS_NAME => $buildingClass, ArrayDefinition::CONSTRUCTOR => [$parameterName => Reference::to($this->definitions[$typedParameterName])]]); if ($definition instanceof ArrayDefinition) {
mutation / PHP 8.3-ubuntu-latest: src/DefinitionStorage.php#L109
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ if (isset($this->definitions[$id])) { return true; } - if ($parameterName !== null && (isset($this->definitions[$typedParameterName = $id . ' $' . $parameterName]) || isset($this->definitions[$typedParameterName = '$' . $parameterName])) && !empty($buildingClass = array_key_last($building)) && class_exists($buildingClass)) { + if ($parameterName !== null && (isset($this->definitions[$typedParameterName = $id . ' $' . $parameterName]) || isset($this->definitions[$typedParameterName = $parameterName . '$'])) && !empty($buildingClass = array_key_last($building)) && class_exists($buildingClass)) { $definition = $this->definitions[$buildingClass] ?? null; $temporaryDefinition = ArrayDefinition::fromConfig([ArrayDefinition::CLASS_NAME => $buildingClass, ArrayDefinition::CONSTRUCTOR => [$parameterName => Reference::to($this->definitions[$typedParameterName])]]); if ($definition instanceof ArrayDefinition) {
mutation / PHP 8.3-ubuntu-latest: src/DefinitionStorage.php#L109
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ if (isset($this->definitions[$id])) { return true; } - if ($parameterName !== null && (isset($this->definitions[$typedParameterName = $id . ' $' . $parameterName]) || isset($this->definitions[$typedParameterName = '$' . $parameterName])) && !empty($buildingClass = array_key_last($building)) && class_exists($buildingClass)) { + if ($parameterName !== null && (isset($this->definitions[$typedParameterName = $id . ' $' . $parameterName]) || isset($this->definitions[$typedParameterName = $parameterName])) && !empty($buildingClass = array_key_last($building)) && class_exists($buildingClass)) { $definition = $this->definitions[$buildingClass] ?? null; $temporaryDefinition = ArrayDefinition::fromConfig([ArrayDefinition::CLASS_NAME => $buildingClass, ArrayDefinition::CONSTRUCTOR => [$parameterName => Reference::to($this->definitions[$typedParameterName])]]); if ($definition instanceof ArrayDefinition) {
mutation / PHP 8.3-ubuntu-latest: src/DefinitionStorage.php#L109
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ if (isset($this->definitions[$id])) { return true; } - if ($parameterName !== null && (isset($this->definitions[$typedParameterName = $id . ' $' . $parameterName]) || isset($this->definitions[$typedParameterName = '$' . $parameterName])) && !empty($buildingClass = array_key_last($building)) && class_exists($buildingClass)) { + if ($parameterName !== null && (isset($this->definitions[$typedParameterName = $id . ' $' . $parameterName]) || isset($this->definitions[$typedParameterName = '$'])) && !empty($buildingClass = array_key_last($building)) && class_exists($buildingClass)) { $definition = $this->definitions[$buildingClass] ?? null; $temporaryDefinition = ArrayDefinition::fromConfig([ArrayDefinition::CLASS_NAME => $buildingClass, ArrayDefinition::CONSTRUCTOR => [$parameterName => Reference::to($this->definitions[$typedParameterName])]]); if ($definition instanceof ArrayDefinition) {
mutation / PHP 8.3-ubuntu-latest: src/DefinitionStorage.php#L254
Escaped Mutant for Mutator "LogicalAnd": --- Original +++ New @@ @@ } finally { $this->buildStack += $building; } - if ($isResolvable && !isset($this->definitions[$id])) { + if ($isResolvable || !isset($this->definitions[$id])) { $this->definitions[$id] = $id; } return $isResolvable; } }