Skip to content

PHPLIB-330: Add property type hints #673

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

Merged
merged 1 commit into from
Aug 28, 2019

Conversation

alcaeus
Copy link
Member

@alcaeus alcaeus commented Aug 27, 2019

This is a follow-up to #668 that I extracted to keep the diff small. This PR adds @var annotations to all properties in classes and partially enables the TypeHintSniff, requiring such property types to be declared. Declaring these types throughout the code helps with code completion, which currently doesn't always work because of missing type information.

@alcaeus alcaeus requested a review from jmikola August 27, 2019 12:40
@alcaeus alcaeus self-assigned this Aug 27, 2019
Copy link
Member

@jmikola jmikola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but let's see if we can collapse these doc blocks to a single line.

@alcaeus alcaeus force-pushed the phplib-330-property-types branch from 8b90915 to 2e88365 Compare August 28, 2019 05:12
@alcaeus alcaeus force-pushed the phplib-330-property-types branch from 2e88365 to 4a764fe Compare August 28, 2019 05:38
alcaeus added a commit that referenced this pull request Aug 28, 2019
@alcaeus alcaeus merged commit 4a764fe into mongodb:master Aug 28, 2019
@alcaeus alcaeus deleted the phplib-330-property-types branch August 28, 2019 06:38
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