Commit 205fdd1
authored
Wrap entrypoints into IIFE to protect their variables (#5366)
* Wrap entrypoints into IIFE to protect their variables
Fixes #5359
* Add tests for Psalm variable isolation
* Capture environment before registering autoloader1 parent 0a4ad57 commit 205fdd1
15 files changed
Lines changed: 1552 additions & 1428 deletions
File tree
- src
- Psalm
- tests
- Config
- EndToEnd
- fixtures/DestructiveAutoloader
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
440 | 441 | | |
441 | 442 | | |
442 | 443 | | |
| 444 | + | |
443 | 445 | | |
444 | 446 | | |
445 | 447 | | |
| |||
542 | 544 | | |
543 | 545 | | |
544 | 546 | | |
545 | | - | |
| 547 | + | |
546 | 548 | | |
547 | 549 | | |
548 | 550 | | |
| |||
0 commit comments