Skip to content

Commit 6180a99

Browse files
authored
Merge pull request #8 from sasezaki/up_readme3
update readme
2 parents 0385ee0 + 717108c commit 6180a99

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

README.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,21 @@ This is VERY VERY **Experimental** .
1414

1515
* NOT support global variables.
1616
* NOT support variables in namespace.
17-
* NOT support [Variable variables](https://php.net/language.variables.variable)
17+
* NOT support [Variable variables](https://php.net/language.variables.variable)
18+
* Non-each inline VariableReference.
19+
* eg.
20+
```php
21+
/** @var string $var1 */
22+
/** @var bool $var2 */
23+
$var1 = 'string'; // cannot determine type for $var1
24+
25+
// should fix like below
26+
/** @var string $var1 */
27+
$var1 = 'string';
28+
/** @var bool $var2 */
29+
$var2 = true;
30+
```
31+
1832

1933
## Installation
2034
```
@@ -26,13 +40,7 @@ $ vendor/bin/psalm-plugin enable struggle-for-php/sfp-psalm-typed-local-variable
2640
- [ ] optional setting for only from_docblock typed.
2741
- [ ] support Variable variables.
2842

29-
##
30-
```
31-
$ composer require --dev struggle-for-php/sfp-psalm-typed-local-variable-plugin
32-
$ vendor/bin/psalm-plugin enable struggle-for-php/sfp-psalm-typed-local-variable-plugin
33-
```
34-
35-
## demo
43+
## Demo
3644

3745
```php
3846
<?php

0 commit comments

Comments
 (0)