Skip to content

Fix #13828: Reference to static const behaves as self const #25597

Fix #13828: Reference to static const behaves as self const

Fix #13828: Reference to static const behaves as self const #25597

Triggered via pull request February 16, 2026 11:03
Status Failure
Total duration 13m 38s
Artifacts

tests.yml

on: pull_request
Matrix: Tests PHPUnit 12.x
Determine levels tests matrix
33s
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 2 warnings
Mutation Testing (8.3, ubuntu-latest)
Process completed with exit code 1.
Mutation Testing (8.4, ubuntu-latest)
Process completed with exit code 1.
Mutation Testing (8.3, ubuntu-latest): src/Type/ClassConstantAccessType.php#L54
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator": @@ @@ protected function getResult(): Type { - if ($this->type->hasConstant($this->constantName)->yes()) { + if (!$this->type->hasConstant($this->constantName)->no()) { return $this->type->getConstant($this->constantName)->getValueType(); }
Mutation Testing (8.4, ubuntu-latest): src/Type/ClassConstantAccessType.php#L54
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator": @@ @@ protected function getResult(): Type { - if ($this->type->hasConstant($this->constantName)->yes()) { + if (!$this->type->hasConstant($this->constantName)->no()) { return $this->type->getConstant($this->constantName)->getValueType(); }