Skip to content

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

@Wes1262

Description

@Wes1262

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions