Skip to content

Hints can't show for class set as 'catch' parameter #718

Open
@Nainabhandari8

Description

@Nainabhandari8

NOTE:
-Download brackets from brackets.io page.
-Install PHP7 as LSP features like diagnostic problem, find references, find symbols, jump to definition, code hints, parameter hints are only supported in PHP7.

code hints: When we start tying function name, e.g: fopen, when we type first letter "f", it will show the list of function who start from that particular letter.

Diagnostic problems: It is a panel which is displayed at the bottom of brackets, all the introduce error should be shown under this panel. If file does not have any error it will be not visible.

Parameter hints : It will be shown on typing "(" after function name. It will show the list of parameters in which first hint will be bold and as we enter first hint then second hints will be bold and so on.

Method:

  1. Install and launch Brackets
  2. Create a php file
  3. Type or copy/paste the following php script:
    <?php class MyException extends Exception {} $e = new DateTime(); class Test { public function testing() { try { try { throw new MyException( 'foo!' ); } catch ( MyException $e ) { /* rethrow it */ throw $e; //line 11 } } catch ( Exception $e ) { var_dump(); } } } } ?>
  4. After "var_dump( " type: "$"
  5. Type "e-"
  6. Type ">"
    7.Observe

Result:
Hints can't show for class set as 'catch' parameter.

Expected:
Hints should be show.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions