Skip to content

Commit cb193e5

Browse files
author
Kirill Nesmeyanov
committed
Apply phpcs
1 parent b31bad5 commit cb193e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Type/StringType.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,16 @@ protected function convertToString(mixed $value, Context $context): string
6161
$value === \INF => static::INF_TO_STRING,
6262
$value === -\INF => '-' . static::INF_TO_STRING,
6363
// Non-zero float number
64-
\str_contains($result = (string)$value, '.') => $result,
64+
\str_contains($result = (string) $value, '.') => $result,
6565
// Integer-like float number
6666
default => \number_format($value, 1, '.', ''),
6767
},
6868
// Int
6969
\is_int($value),
7070
// Stringable
71-
$value instanceof \Stringable => (string)$value,
71+
$value instanceof \Stringable => (string) $value,
7272
// Enum
73-
$value instanceof \BackedEnum => (string)$value->value,
73+
$value instanceof \BackedEnum => (string) $value->value,
7474
default => throw InvalidValueException::createFromContext(
7575
value: $value,
7676
context: $context,

0 commit comments

Comments
 (0)