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

Document InvalidUriException #39

Merged
merged 1 commit into from
Jun 17, 2019
Merged

Document InvalidUriException #39

merged 1 commit into from
Jun 17, 2019

Conversation

BenMorel
Copy link
Contributor

_parse_fallback(), together with functions that directly or indirectly call it, are missing @throws in their respective docblocks.

This is annoying for static analysis, for example PHPStorm tells me:

image

This PR adds @throws where appropriate.

@BenMorel
Copy link
Contributor Author

@evert @DeepDiver1975 Could you please consider merging & releasing?

@evert
Copy link
Member

evert commented Jun 17, 2019

It's crazy that phpstorm can't infer this. Must be annoying getting these messages all the time. I don't really see any harm, but I also don't see us making this a default policy.

@evert evert merged commit b6fec2d into sabre-io:master Jun 17, 2019
@BenMorel
Copy link
Contributor Author

It's crazy that phpstorm can't infer this.

In their defense, I think that PHPStorm deliberately does not attempt to take into account any of the undocumented exceptions, treating them as "unchecked" exceptions that should usually not be caught. I think the idea is that only exceptions explicitly documented are worth reporting when not caught.

This makes sense somehow, at least until PHP—or the community—comes with clear rules regarding exception handling.

@BenMorel BenMorel deleted the throws branch June 17, 2019 14:50
@BenMorel
Copy link
Contributor Author

@evert Could you please tag a release?

@evert
Copy link
Member

evert commented Jun 25, 2019

@staabm i don't fully remember the release process. Do we just make a git tag and update the changelog? Or is there more to it. Happy to do it but just wanted to double check.

@staabm
Copy link
Member

staabm commented Jun 25, 2019

Update https://github.com/sabre-io/uri/blob/master/lib/Version.php
Update changelog
Git tag

Thats what I remember :)

@evert
Copy link
Member

evert commented Jun 25, 2019

Thank you =)

@evert
Copy link
Member

evert commented Jun 25, 2019

2.1.2 is released

@BenMorel
Copy link
Contributor Author

👍 Thank you!

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

3 participants