Skip to content

Commit e09fe6f

Browse files
committed
Fix context issues
1 parent a9821f2 commit e09fe6f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/Context/Context.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,6 @@ public function getTypeByValue(mixed $value): TypeInterface
131131
*/
132132
public function count(): int
133133
{
134-
return \iterator_count($this);
134+
return \max(1, \iterator_count($this));
135135
}
136136
}

src/Type/ListFromIterableType.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ protected function process(iterable $value, Context $context): array
5858
$entrance = $context->enter(
5959
value: $item,
6060
entry: new ArrayIndexEntry($index),
61-
strictTypes: $context->isStrictTypesEnabled(),
6261
);
6362

6463
try {

0 commit comments

Comments
 (0)