Skip to content

Narrow preg_match/preg_match_all subject string type when match is truthy #29882

Narrow preg_match/preg_match_all subject string type when match is truthy

Narrow preg_match/preg_match_all subject string type when match is truthy #29882

Triggered via pull request May 29, 2026 12:22
Status Failure
Total duration 13m 23s
Artifacts

tests.yml

on: pull_request
Matrix: Tests PHPUnit 12.x
Determine levels tests matrix
47s
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

3 errors, 2 warnings, and 8 notices
Tests with old PHPUnit (8.1, ubuntu-latest)
Process completed with exit code 2.
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/Php/PregMatchTypeSpecifyingExtension.php#L58
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator": @@ @@ if ( $subjectArg !== null && $context->true() - && $scope->getType($subjectArg->value)->isString()->yes() + && !$scope->getType($subjectArg->value)->isString()->no() && !$this->isSubExprOfMatchesArg($subjectArg->value, $matchesArg !== null ? $matchesArg->value : null) ) { $subjectType = $this->regexShapeMatcher->matchSubjectExpr($patternArg->value, $scope);
Mutation Testing (8.4, ubuntu-latest): src/Type/Php/PregMatchTypeSpecifyingExtension.php#L58
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator": @@ @@ if ( $subjectArg !== null && $context->true() - && $scope->getType($subjectArg->value)->isString()->yes() + && !$scope->getType($subjectArg->value)->isString()->no() && !$this->isSubExprOfMatchesArg($subjectArg->value, $matchesArg !== null ? $matchesArg->value : null) ) { $subjectType = $this->regexShapeMatcher->matchSubjectExpr($patternArg->value, $scope);
Integration tests (windows-latest)
NOTICE: windows-latest requests are being redirected to windows-2025-vs2026 by June 15, 2026
Tests PHPUnit 12.x (8.5, windows-latest)
NOTICE: windows-latest requests are being redirected to windows-2025-vs2026 by June 15, 2026
Tests with old PHPUnit (7.4, windows-latest)
NOTICE: windows-latest requests are being redirected to windows-2025-vs2026 by June 15, 2026
Tests PHPUnit 12.x (8.4, windows-latest)
NOTICE: windows-latest requests are being redirected to windows-2025-vs2026 by June 15, 2026
Tests PHPUnit 12.x (8.3, windows-latest)
NOTICE: windows-latest requests are being redirected to windows-2025-vs2026 by June 15, 2026
Tests with old PHPUnit (8.0, windows-latest)
NOTICE: windows-latest requests are being redirected to windows-2025-vs2026 by June 15, 2026
Tests PHPUnit 11.x (8.2, windows-latest)
NOTICE: windows-latest requests are being redirected to windows-2025-vs2026 by June 15, 2026
Tests with old PHPUnit (8.1, windows-latest)
NOTICE: windows-latest requests are being redirected to windows-2025-vs2026 by June 15, 2026