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

[Docs] use more modern syntax for nullable return type #2719

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

galangaidilakbar
Copy link

This pull request updates the return type of the before method in the docs from bool|null to ?bool. This change ensures that the method correctly reflects its possible return values, including true, false, and null.

@drbyte
Copy link
Collaborator

drbyte commented Sep 18, 2024

Thanks.

Maybe my eyes are tired, but both mean the same, don't they?

@drbyte drbyte changed the title [Docs] Update before Method Return Type to Nullable Boolean [Docs] use more modern syntax for nullable return type Sep 19, 2024
@drbyte drbyte merged commit 4dd1ab7 into spatie:main Sep 19, 2024
26 checks 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