We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dbc045 commit c228724Copy full SHA for c228724
src/Type/ListType.php
@@ -25,7 +25,11 @@ public function __construct(
25
public function match(mixed $value, Context $context): bool
26
{
27
if ($context->isDenormalization()) {
28
- return \is_array($value) && \array_is_list($value);
+ if ($context->isStrictTypesEnabled()) {
29
+ return \is_array($value) && \array_is_list($value);
30
+ }
31
+
32
+ return \is_array($value);
33
}
34
35
return \is_iterable($value);
0 commit comments