Skip to content

Fix SimplXmlElement and GMP casts #25915

Fix SimplXmlElement and GMP casts

Fix SimplXmlElement and GMP casts #25915

Triggered via pull request February 21, 2026 18:07
Status Failure
Total duration 14m 20s
Artifacts

tests.yml

on: pull_request
Matrix: Tests PHPUnit 12.x
Determine levels tests matrix
37s
Determine levels tests matrix
Matrix: Integration tests
Matrix: Tests PHPUnit 11.x
Matrix: Tests with old PHPUnit
Matrix: Mutation Testing
Matrix: Levels tests
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 14 warnings
Mutation Testing (8.4, ubuntu-latest)
Process completed with exit code 1.
Mutation Testing (8.3, ubuntu-latest)
Process completed with exit code 1.
Mutation Testing (8.4, ubuntu-latest): src/Type/ObjectType.php#L922
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator": @@ @@ if ( $this->isInstanceOf('SimpleXMLElement')->yes() || $this->isInstanceOf('BcMath\Number')->yes() - || $this->isInstanceOf('GMP')->yes() + || !$this->isInstanceOf('GMP')->no() ) { return new BooleanType(); }
Mutation Testing (8.4, ubuntu-latest): src/Type/ObjectType.php#L804
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator": @@ @@ { if ( $this->isInstanceOf('BcMath\Number')->yes() - || $this->isInstanceOf('GMP')->yes() + || !$this->isInstanceOf('GMP')->no() ) { return new IntersectionType([ new StringType(),
Mutation Testing (8.4, ubuntu-latest): src/Type/ObjectType.php#L803
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator": @@ @@ public function toString(): Type { if ( - $this->isInstanceOf('BcMath\Number')->yes() + !$this->isInstanceOf('BcMath\Number')->no() || $this->isInstanceOf('GMP')->yes() ) { return new IntersectionType([
Mutation Testing (8.4, ubuntu-latest): src/Type/ObjectType.php#L793
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator": @@ @@ { if ( $this->isInstanceOf('SimpleXMLElement')->yes() - || $this->isInstanceOf('GMP')->yes() + || !$this->isInstanceOf('GMP')->no() ) { return new FloatType(); }
Mutation Testing (8.4, ubuntu-latest): src/Type/ObjectType.php#L792
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator": @@ @@ public function toFloat(): Type { if ( - $this->isInstanceOf('SimpleXMLElement')->yes() + !$this->isInstanceOf('SimpleXMLElement')->no() || $this->isInstanceOf('GMP')->yes() ) { return new FloatType();
Mutation Testing (8.4, ubuntu-latest): src/Type/ObjectType.php#L777
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator": @@ @@ { if ( $this->isInstanceOf('SimpleXMLElement')->yes() - || $this->isInstanceOf('GMP')->yes() + || !$this->isInstanceOf('GMP')->no() ) { return new IntegerType(); }
Mutation Testing (8.4, ubuntu-latest): src/Type/ObjectType.php#L776
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator": @@ @@ public function toInteger(): Type { if ( - $this->isInstanceOf('SimpleXMLElement')->yes() + !$this->isInstanceOf('SimpleXMLElement')->no() || $this->isInstanceOf('GMP')->yes() ) { return new IntegerType();
Mutation Testing (8.3, ubuntu-latest): src/Type/ObjectType.php#L922
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator": @@ @@ if ( $this->isInstanceOf('SimpleXMLElement')->yes() || $this->isInstanceOf('BcMath\Number')->yes() - || $this->isInstanceOf('GMP')->yes() + || !$this->isInstanceOf('GMP')->no() ) { return new BooleanType(); }
Mutation Testing (8.3, ubuntu-latest): src/Type/ObjectType.php#L804
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator": @@ @@ { if ( $this->isInstanceOf('BcMath\Number')->yes() - || $this->isInstanceOf('GMP')->yes() + || !$this->isInstanceOf('GMP')->no() ) { return new IntersectionType([ new StringType(),
Mutation Testing (8.3, ubuntu-latest): src/Type/ObjectType.php#L803
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator": @@ @@ public function toString(): Type { if ( - $this->isInstanceOf('BcMath\Number')->yes() + !$this->isInstanceOf('BcMath\Number')->no() || $this->isInstanceOf('GMP')->yes() ) { return new IntersectionType([
Mutation Testing (8.3, ubuntu-latest): src/Type/ObjectType.php#L793
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator": @@ @@ { if ( $this->isInstanceOf('SimpleXMLElement')->yes() - || $this->isInstanceOf('GMP')->yes() + || !$this->isInstanceOf('GMP')->no() ) { return new FloatType(); }
Mutation Testing (8.3, ubuntu-latest): src/Type/ObjectType.php#L792
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator": @@ @@ public function toFloat(): Type { if ( - $this->isInstanceOf('SimpleXMLElement')->yes() + !$this->isInstanceOf('SimpleXMLElement')->no() || $this->isInstanceOf('GMP')->yes() ) { return new FloatType();
Mutation Testing (8.3, ubuntu-latest): src/Type/ObjectType.php#L777
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator": @@ @@ { if ( $this->isInstanceOf('SimpleXMLElement')->yes() - || $this->isInstanceOf('GMP')->yes() + || !$this->isInstanceOf('GMP')->no() ) { return new IntegerType(); }
Mutation Testing (8.3, ubuntu-latest): src/Type/ObjectType.php#L776
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator": @@ @@ public function toInteger(): Type { if ( - $this->isInstanceOf('SimpleXMLElement')->yes() + !$this->isInstanceOf('SimpleXMLElement')->no() || $this->isInstanceOf('GMP')->yes() ) { return new IntegerType();