php-option icon indicating copy to clipboard operation
php-option copied to clipboard

Improve `Option::select()` return type

Open axlon opened this issue 1 year ago • 0 comments

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>

axlon avatar Aug 11 '24 18:08 axlon