Style updates.

This commit is contained in:
Ash Allen
2023-08-01 12:12:41 +01:00
parent 011bd3ba82
commit 3f854713e6
2 changed files with 2 additions and 2 deletions

View File

@ -701,7 +701,7 @@ final class Expectation
{
return Targeted::make(
$this,
fn(ObjectDescription $object): bool => $object->reflectionClass->hasMethod('__invoke'),
fn (ObjectDescription $object): bool => $object->reflectionClass->hasMethod('__invoke'),
'to be invokable',
FileLineFinder::where(fn (string $line): bool => str_contains($line, 'class'))
);

View File

@ -372,7 +372,7 @@ final class OppositeExpectation
{
return Targeted::make(
$this->original,
fn(ObjectDescription $object): bool => !$object->reflectionClass->hasMethod('__invoke'),
fn (ObjectDescription $object): bool => ! $object->reflectionClass->hasMethod('__invoke'),
'to not be invokable',
FileLineFinder::where(fn (string $line): bool => str_contains($line, 'class'))
);