Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add T as a possible return type for lastOr and firstOr #27

Merged
merged 2 commits into from
Feb 9, 2024

Conversation

Bl00D4NGEL
Copy link
Collaborator

PHPStan will complain about a value always returning null from firstOr / lastOr if no sensible default is given.

This PR adapts the PHPDoc return signature to allow both T and U to be returned from the firstOr and lastOr functions. No changes for tests are required

@Bl00D4NGEL Bl00D4NGEL merged commit 2bb6795 into geekcell:main Feb 9, 2024
1 check passed
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