Replace FAUX function call workarounds #30394
tests.yml
on: pull_request
Matrix: Tests PHPUnit 12.x
Determine levels tests matrix
48s
Matrix: Integration tests
Matrix: Tests PHPUnit 11.x
Matrix: Tests with old PHPUnit
Matrix: Mutation Testing
Matrix: Levels tests
Annotations
5 errors and 5 warnings
|
Tests with old PHPUnit (8.0, ubuntu-latest)
Process completed with exit code 2.
|
|
Tests with old PHPUnit (8.0, windows-latest)
Process completed with exit code 1.
|
|
Tests with old PHPUnit (7.4, windows-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)
Process completed with exit code 1.
|
|
Mutation Testing (8.4, ubuntu-latest):
src/Rules/Comparison/ImpossibleCheckTypeHelper.php#L315
Escaped Mutant for Mutator "PHPStan\Infection\LooseBooleanMutator":
@@ @@
if ($specifiedTypes->isEquality()) {
if ($scope->hasExpressionType($node)->yes()) {
$nodeType = $this->treatPhpDocTypesAsCertain ? $scope->getType($node) : $scope->getNativeType($node);
- if ($nodeType->isTrue()->yes()) {
+ if ($nodeType->toBoolean()->isTrue()->yes()) {
return true;
}
if ($nodeType->isFalse()->yes()) {
|
|
Mutation Testing (8.4, ubuntu-latest):
src/Rules/Comparison/ImpossibleCheckTypeHelper.php#L315
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator":
@@ @@
if ($specifiedTypes->isEquality()) {
if ($scope->hasExpressionType($node)->yes()) {
$nodeType = $this->treatPhpDocTypesAsCertain ? $scope->getType($node) : $scope->getNativeType($node);
- if ($nodeType->isTrue()->yes()) {
+ if (!$nodeType->toBoolean()->isTrue()->no()) {
return true;
}
if ($nodeType->isFalse()->yes()) {
|
|
Mutation Testing (8.4, ubuntu-latest):
src/Rules/Comparison/ImpossibleCheckTypeHelper.php#L313
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator":
@@ @@
}
if ($specifiedTypes->isEquality()) {
- if ($scope->hasExpressionType($node)->yes()) {
+ if (!$scope->hasExpressionType($node)->no()) {
$nodeType = $this->treatPhpDocTypesAsCertain ? $scope->getType($node) : $scope->getNativeType($node);
if ($nodeType->isTrue()->yes()) {
return true;
|
|
Mutation Testing (8.3, ubuntu-latest):
src/Rules/Comparison/ImpossibleCheckTypeHelper.php#L315
Escaped Mutant for Mutator "PHPStan\Infection\LooseBooleanMutator":
@@ @@
if ($specifiedTypes->isEquality()) {
if ($scope->hasExpressionType($node)->yes()) {
$nodeType = $this->treatPhpDocTypesAsCertain ? $scope->getType($node) : $scope->getNativeType($node);
- if ($nodeType->isTrue()->yes()) {
+ if ($nodeType->toBoolean()->isTrue()->yes()) {
return true;
}
if ($nodeType->isFalse()->yes()) {
|
|
Mutation Testing (8.3, ubuntu-latest):
src/Rules/Comparison/ImpossibleCheckTypeHelper.php#L313
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator":
@@ @@
}
if ($specifiedTypes->isEquality()) {
- if ($scope->hasExpressionType($node)->yes()) {
+ if (!$scope->hasExpressionType($node)->no()) {
$nodeType = $this->treatPhpDocTypesAsCertain ? $scope->getType($node) : $scope->getNativeType($node);
if ($nodeType->isTrue()->yes()) {
return true;
|