Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/Type/Constant/ConstantArrayType.php
Original file line number Diff line number Diff line change
Expand Up @@ -563,9 +563,11 @@
if (
$has->yes()
&& !$phpVersion->supportsCallableInstanceMethods()
&& $classOrObject->isString()->yes()

Check warning on line 566 in src/Type/Constant/ConstantArrayType.php

View workflow job for this annotation

GitHub Actions / Mutation Testing (8.3, ubuntu-latest)

Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator": @@ @@ if ( $has->yes() && !$phpVersion->supportsCallableInstanceMethods() - && $classOrObject->isString()->yes() + && !$classOrObject->isString()->no() ) { $methodReflection = $type->getMethod($methodName->getValue(), new OutOfClassScope());

Check warning on line 566 in src/Type/Constant/ConstantArrayType.php

View workflow job for this annotation

GitHub Actions / Mutation Testing (8.4, ubuntu-latest)

Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator": @@ @@ if ( $has->yes() && !$phpVersion->supportsCallableInstanceMethods() - && $classOrObject->isString()->yes() + && !$classOrObject->isString()->no() ) { $methodReflection = $type->getMethod($methodName->getValue(), new OutOfClassScope());
) {
$methodReflection = $type->getMethod($methodName->getValue(), new OutOfClassScope());
if ($classOrObject->isString()->yes() && !$methodReflection->isStatic()) {

if (!$methodReflection->isStatic()) {
continue;
}
}
Expand Down
Loading