Skip to content

Conversation

ojhaujjwal
Copy link

When using Option::fromValue($something), psalm decoded it was Option<string | null> because $something is of type string | null.

This is the psalm error I got in my codebase:
image

However, I want to let psalm know that even if I pass something like null to Option::fromValue ,the output is actually only Option<string> instead of Option<string | null>.

@ojhaujjwal
Copy link
Author

@schmittjoh It would be great if you could review this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant