Repository navigation
Commit 99accfb
committed
Track object aliases on the scope so property writes and calls reach every alias
$c = $a stores an ObjectAliasExpr edge, like the by-reference tracking of
IntertwinedVariableByReferenceWithExpr. A property write through one side
updates the remembered fact about the same property on the other side, an
impure call forgets the facts of every alias, and two variables linked by
certain edges make $a === $c always true.
Amp-Thread-ID: https://ampcode.com/threads/T-01a17eac-1199-74a6-b3f7-dfbd8a0844651 parent 58d53fb commit 99accfb
14 files changed
Lines changed: 1768 additions & 350 deletions
File tree
- src
- Analyser
- ExprHandler
- Node
- Expr
- Printer
- tests/PHPStan/Analyser/nsrt
- turbo-ext/src
- generated
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1388 | 1388 | | |
1389 | 1389 | | |
1390 | 1390 | | |
1391 | | - | |
| 1391 | + | |
1392 | 1392 | | |
1393 | 1393 | | |
1394 | 1394 | | |
| |||
0 commit comments