File tree Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,21 @@ This is VERY VERY **Experimental** .
14
14
15
15
* NOT support global variables.
16
16
* 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
+
18
32
19
33
## Installation
20
34
```
@@ -26,13 +40,7 @@ $ vendor/bin/psalm-plugin enable struggle-for-php/sfp-psalm-typed-local-variable
26
40
- [ ] optional setting for only from_docblock typed.
27
41
- [ ] support Variable variables.
28
42
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
36
44
37
45
``` php
38
46
<?php
You can’t perform that action at this time.
0 commit comments