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 PHPDoc: mark optional properties as nullables #963

Merged

Conversation

alies-dev
Copy link
Contributor

Fixes #962

Goal: help IDE and static analyzers to report about potential null pointer issues.

In this PR I aligned PHPDoc, but it's considered as a bad practice as it produce a lot of noise on git diffs and force developers to align it manually or change IDE setting for this project. I can setup automated coding-style fixer as a new PR (if maintainers likes the idea -- please share your thoughts beforehand).

@alies-dev
Copy link
Contributor Author

Hey @irazasyed
This is no-brainer PR, I think you need less than 2 minutes to review and approve it. I'll be glad to have it on develop. Thanks!

@irazasyed irazasyed merged commit 67fab9f into irazasyed:develop Jul 5, 2022
@alies-dev alies-dev deleted the optional-properties-as-nullables branch July 5, 2022 22:27
@irazasyed
Copy link
Owner

Thanks. Please consider trying our upcoming V4 (WIP). We don't plan to support this version for long.

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.

Proposal: Mark optional properties as nullable
2 participants