Merge branch '2.x' into 3.x

This commit is contained in:
Nuno Maduro
2024-08-02 23:53:26 +01:00
8 changed files with 47 additions and 4 deletions

View File

@ -583,7 +583,7 @@ final class Expectation
return Targeted::make(
$this,
fn (ObjectDescription $object): bool => $object->reflectionClass->hasMethod($method),
'to have method',
sprintf("to have method '%s'", $method),
FileLineFinder::where(fn (string $line): bool => str_contains($line, 'class')),
);
}