mirror of
https://github.com/pestphp/pest.git
synced 2026-03-12 10:47:25 +01:00
chore: fixes types
This commit is contained in:
@ -454,7 +454,7 @@ final class Expectation
|
|||||||
{
|
{
|
||||||
return Targeted::make(
|
return Targeted::make(
|
||||||
$this,
|
$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),
|
sprintf('to have less than %d lines of code', $lines),
|
||||||
FileLineFinder::where(fn (string $line): bool => str_contains($line, '<?php')),
|
FileLineFinder::where(fn (string $line): bool => str_contains($line, '<?php')),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user