Skip to content

Commit ed70c9d

Browse files
committed
refactor: type adjustments
1 parent 157a753 commit ed70c9d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Expectations/OppositeExpectation.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ function (ObjectDescription $object) use ($methods, &$state): bool {
286286
$methods === []
287287
? 'not to have public methods'
288288
: sprintf("not to have public methods besides '%s'", implode("', '", $methods)),
289-
FileLineFinder::where(fn (string $line): bool => str_contains($line, $state->contains)),
289+
FileLineFinder::where(fn (string $line): bool => str_contains($line, (string) $state->contains)),
290290
);
291291
}
292292

@@ -329,7 +329,7 @@ function (ObjectDescription $object) use ($methods, &$state): bool {
329329
$methods === []
330330
? 'not to have protected methods'
331331
: sprintf("not to have protected methods besides '%s'", implode("', '", $methods)),
332-
FileLineFinder::where(fn (string $line): bool => str_contains($line, $state->contains)),
332+
FileLineFinder::where(fn (string $line): bool => str_contains($line, (string) $state->contains)),
333333
);
334334
}
335335

@@ -372,7 +372,7 @@ function (ObjectDescription $object) use ($methods, &$state): bool {
372372
$methods === []
373373
? 'not to have private methods'
374374
: sprintf("not to have private methods besides '%s'", implode("', '", $methods)),
375-
FileLineFinder::where(fn (string $line): bool => str_contains($line, $state->contains)),
375+
FileLineFinder::where(fn (string $line): bool => str_contains($line, (string) $state->contains)),
376376
);
377377
}
378378

0 commit comments

Comments
 (0)