Skip to content

Commit 89636b9

Browse files
PHP Snippets Quality of Life and Continuity (microsoft#174889)
* QoL & continuity update to existing php snippets - Sorted snippets by snippet title for discoverability - Removed all doc comments from non 'doc_' prefixed snippets - Added doc_trait for continuity with other patterns - Updated snippet prefixes - Add kvp to keyval - Prefixed fun with class_ - Changed doc_param to doc_var - Qualified 'con' to 'constructor' to not be confused with const - Updated class snippet to default the 'class' placeholder to the file's base name - Add snippet choices for private, public, protected where appropriate - Add an additional tab stop to end of functions for additional args/params - Remove array kvps since arrays can be associative or just values * Add try catch finally php snippet * Add param php snippet * Add php func snippets - Add fun for a general function out of scope of class - Add fun_anonymous for anonymous functions - Add fun_arrow for arrow functions * Add promotion style constructor to php snippets * Add property snippet to php snippets * Add spaceship snippet to php snippets * Add goto snippet to php snippets * Add class_const snippet to php snippets * Add here/now doc snippets to php snippets * Add namespace related snippets to php snippets * Add superglobal snippets to php snippets * Add php 8 snippets - Add match expression - Add Attribute snippets - Add sensitive parameter - Add attribute target - Add attribute with target - Rename class_const to const - Add Dynamic Property Class snippet - Add enum snippets - Basic Enum - Backed Enum - foreach enum * Merge master to resolve conflict * Remove php snippets as candidates - Remove heredoc - Remove nowdoc - Remove php super global snippets - Remove namespace_path - Remove ethis (echo $this->) - Remove try/catch finally * Trim snippets --------- Co-authored-by: Rob Lourens <[email protected]>
1 parent ce903f3 commit 89636b9

File tree

1 file changed

+216
-149
lines changed

1 file changed

+216
-149
lines changed

0 commit comments

Comments
 (0)