Closed janedbal closed 3 months ago
@janedbal could you give more precise code when it shown the error? thank you.
Method
public function skipPick(
SkipPickReason $skipPickReason,
): void
called only with SkipPickReason::BarcodeIssue
of
enum SkipPickReason: string
{
case BarcodeIssue = 'barcode_issue';
case EmptyLocation = 'empty_location';
}
@janedbal I can't reproduce issue by this PR test
https://github.com/rectorphp/type-perfect/pull/19
could you verify if something missing in the test? Thank you.
Closing as can't be reproduced, @janedbal feel free to create valid failing test case PR when you have time. thank you.
Re-open as reproduced at https://github.com/rectorphp/type-perfect/pull/19
When only single enum case is passed, it gets reported. That is obviously not possible to typehint: