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

"throws" in function/method synopsis, like return #11

Open
Wes0617 opened this issue Dec 16, 2016 · 0 comments
Open

"throws" in function/method synopsis, like return #11

Wes0617 opened this issue Dec 16, 2016 · 0 comments

Comments

@Wes0617
Copy link
Collaborator

Wes0617 commented Dec 16, 2016

Currently:

public string Qux::foo( string $baz , string $bar )

Should be (kinda):

public function /* Qux:: */ foo(string $baz , string $bar) : string, throws WhateverException;

It's often hard to figure out (or it's even not specified) that methods throw.
Exceptions aren't less important than return, so they must be documented just as well.

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

No branches or pull requests

1 participant