Commit 60ad44d
committed
Symbol: add getAlias function
This function returns the last segment string of the symbol (eg: for the
symbol `Foo\Bar\Baz`, it would return `Baz`). This is important because
the part we need to check for each used symbol is comparing its top
level namespace with the aliases of each imported symbol.1 parent 92472ab commit 60ad44d
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
| |||
0 commit comments