Narrow preg_match/preg_match_all subject string type when match is truthy
#29882
Annotations
1 error and 1 warning
|
|
|
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);
|
The logs for this run have expired and are no longer available.
Loading