chore: fixes types

This commit is contained in:
Nuno Maduro
2024-07-18 20:45:47 +01:00
parent 2e411893d2
commit 99107544ff

View File

@ -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, '<?php')),
);