Skip to content

Conversation

axlon
Copy link

@axlon axlon commented Aug 11, 2024

This change adds a minor improvement to the return type of Option::select() for static analysis.

/** @var \PhpOption\Option<1|2|3> $option */
-PHPStan\dumpType($option->select(2)); // PhpOption\Option<1|2|3>
+PHPStan\dumpType($option->select(2)); // PhpOption\Option<2>

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.

2 participants