Skip to content

Commit 8c0e8cc

Browse files
committed
Update README.md
1 parent 711b421 commit 8c0e8cc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,18 @@ e.g. type `$this-` => `$this->`, type `array('key' =)` => `array('key' =>)`
6868
$this->property;
6969
$array = array('key' => 'value');
7070
$a = ["foo" => "bar"];
71+
$f = fn() => "arrow function";
72+
$result = match ($condition) {
73+
1, 2 => foo(),
74+
default => bar(),
75+
};
7176
```
7277

78+
#### Note:
79+
80+
- If you want to type `==`, please type `=` after `=>`.
81+
- If you want to type `=`, please delete `>`. (It's difficult to handle all cases correctly...)
82+
7383
### Code completion
7484

7585
#### Constant

0 commit comments

Comments
 (0)