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

Add typehints and return types to private functions and constructors. #242

Merged
merged 3 commits into from Jun 9, 2019

Conversation

gmponos
Copy link
Member

@gmponos gmponos commented Dec 6, 2018

The process of adding return types and typehinting the code can be a long one.

That's why I thought about starting with the easy ones. So I added return types to private functions and constructors.

src/PumpStream.php Outdated Show resolved Hide resolved
@sagikazarmark sagikazarmark added this to the 2.0.0 milestone Dec 7, 2018
Copy link
Member

@Nyholm Nyholm left a comment

Choose a reason for hiding this comment

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

Thank you

src/MultipartStream.php Outdated Show resolved Hide resolved
src/MultipartStream.php Show resolved Hide resolved
src/PumpStream.php Outdated Show resolved Hide resolved
src/Response.php Outdated Show resolved Hide resolved
src/Uri.php Outdated Show resolved Hide resolved
src/functions.php Outdated Show resolved Hide resolved
src/PumpStream.php Outdated Show resolved Hide resolved
src/UploadedFile.php Outdated Show resolved Hide resolved
src/Uri.php Outdated Show resolved Hide resolved
src/Uri.php Show resolved Hide resolved
Copy link
Member

@Tobion Tobion left a comment

Choose a reason for hiding this comment

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

In general those changes look safe. Just some minor things to change.

@gmponos
Copy link
Member Author

gmponos commented Dec 28, 2018

@Tobion thank you very much for the review... before we proceed with current PR maybe we should have a look on this PR #250 ? It is related to this discussion... after that if someone could merge master branch to 2.x which is related to this discussion

@sagikazarmark
Copy link
Member

@Tobion can you check if the applied changes fulfill your requests?

src/PumpStream.php Outdated Show resolved Hide resolved
src/Uri.php Outdated Show resolved Hide resolved
@Tobion Tobion merged commit c3412e3 into guzzle:2.x Jun 9, 2019
@Tobion
Copy link
Member

Tobion commented Jun 9, 2019

@gmponos Thanks for working on this. I rebased and finished the PR.

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.

None yet

4 participants