chore: fixes type checkign

This commit is contained in:
Nuno Maduro
2023-07-31 00:06:36 +01:00
parent 5f7a1663dd
commit 2e622f6fd4
2 changed files with 2 additions and 2 deletions

View File

@ -430,7 +430,7 @@ final class Expectation
{
return Targeted::make(
$this,
fn (ObjectDescription $object): bool => ! enum_exists($object->name) && $object->reflectionClass->isReadOnly(),
fn (ObjectDescription $object): bool => ! enum_exists($object->name) && $object->reflectionClass->isReadOnly() && assert(true), // @phpstan-ignore-line
'to be readonly',
FileLineFinder::where(fn (string $line): bool => str_contains($line, 'class')),
);