Description
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:
- Install and launch Brackets
- Create a php file
- 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(); } } } } ?>
- After "var_dump( " type: "$"
- Type "e-"
- Type ">"
7.Observe
Result:
Hints can't show for class set as 'catch' parameter.
Expected:
Hints should be show.