Skip to content

Commit afd7d6a

Browse files
committed
Attempted fix for PHPstan-issues
1 parent bbbb3fe commit afd7d6a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Codebooks/MetadataPolicyOperatorsEnum.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ public function isValueSubsetOf(mixed $value, array $superset): bool
144144
{
145145
$value = is_array($value) ? $value : [$value];
146146

147-
$cast = static fn(mixed $v): string|int|float|bool|null =>
148-
is_object($v) && method_exists($v, '__toString') ? (string) $v : $v;
147+
$cast = static fn(mixed $v): string|int|float|bool|null
148+
=> (string) $v;
149149

150150
return array_diff(
151151
array_map($cast, $value),

0 commit comments

Comments
 (0)