You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm unable to use shape with nullable non-empty-string (as well as union(null(), non_empty_string()). I'm not sure if the issue is in the extension or in the phpstan itself.
Expects: array{foo: non-empty-string, bar: non-empty-string|null}, array{foo: non-empty-string, bar: string|null}. given
The text was updated successfully, but these errors were encountered:
EmilMassey
changed the title
Nullable non-empty-string is asserted as nullable string
Nullable non-empty-string is coerced as nullable string
Sep 21, 2022
I'm unable to use shape with nullable non-empty-string (as well as
union(null(), non_empty_string()
). I'm not sure if the issue is in the extension or in the phpstan itself.Expects:
array{foo: non-empty-string, bar: non-empty-string|null}
,array{foo: non-empty-string, bar: string|null}.
givenThe text was updated successfully, but these errors were encountered: