diff --git a/src/Expectation.php b/src/Expectation.php index 55fa626e..2fd592c8 100644 --- a/src/Expectation.php +++ b/src/Expectation.php @@ -454,7 +454,7 @@ final class Expectation { return Targeted::make( $this, - fn (ObjectDescription $object): bool => count(file($object->path)) < $lines, + fn (ObjectDescription $object): bool => count(file($object->path)) < $lines, // @phpstan-ignore-line sprintf('to have less than %d lines of code', $lines), FileLineFinder::where(fn (string $line): bool => str_contains($line, '