Open
Description
Hello, after upgrading to php-standard-library/phpstan-extension v1.1.0 I'm getting an invalid resolved type for array shapes narrowed by the psl type coerce/assert methods.
E.g.:
$type = shape([
'name' => iterable(
int(),
shape([
'id' => string(),
...
])
)
]);
$data = $type->coerce($someMixedArray);
Then using PHPStan\dumpType
I'm getting e.g. Dumped type: array{name?: mixed}
;
Metadata
Metadata
Assignees
Labels
No labels