Skip to content

Commit 59b9507

Browse files
committed
Update StringType.php
1 parent 56e426a commit 59b9507

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Type/StringType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public function toArrayKey(): Type
184184
public function toCoercedArgumentType(bool $strictTypes): Type
185185
{
186186
if (!$strictTypes) {
187-
return TypeCombinator::union(new IntegerType(), new FloatType(), $this, new BooleanType());
187+
return TypeCombinator::union(new IntegerType(), new FloatType(), new StringType(), new BooleanType());
188188
}
189189

190190
return $this;

0 commit comments

Comments
 (0)