Repository navigation
Commit f2009eb
fix: capture dependencies for dynamic function calls
PHPStan's DependencyResolver resolves non-Name callees ($callable())
via the scope type and records classes referenced by the callable's
signature. Skipping them lost those dependency edges, so a change in
a file referenced only through a dynamic call signature could leave a
stale cache entry. New tripwire pins the PHPStan behavior.
Found by codex review.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 2347f37 commit f2009eb
2 files changed
Lines changed: 20 additions & 6 deletions
File tree
- src/NodeTypeResolver/PHPStan/Scope
- tests/NodeTypeResolver/PHPStan/Scope
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
805 | 805 | | |
806 | 806 | | |
807 | 807 | | |
808 | | - | |
809 | 808 | | |
810 | 809 | | |
811 | 810 | | |
| |||
830 | 829 | | |
831 | 830 | | |
832 | 831 | | |
833 | | - | |
834 | | - | |
835 | | - | |
836 | | - | |
837 | | - | |
| 832 | + | |
838 | 833 | | |
839 | 834 | | |
840 | 835 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
91 | 110 | | |
0 commit comments