You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug #49274 [VarDumper] Disable links for IntelliJ platform (SerafimArts)
This PR was squashed before being merged into the 5.4 branch.
Discussion
----------
[VarDumper] Disable links for IntelliJ platform
| Q | A
| ------------- | ---
| Branch? | 5.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| License | MIT
IntelliJ IDEA / PHP Storm does not support hrefs (TBD: Perhaps only on Windows OS?)
This fix detects that the console was launched from an IDEA environment by `IDEA_INITIAL_DIRECTORY` env variable and disables href rendering.
~Unit tests are missing, because it cannot be tested in simple ways.~
UPD: Added tests by analogy with the proposal in #49274 (comment)
### Before

### After

Commits
-------
f995db4 [VarDumper] Disable links for IntelliJ platform
['<href=https://example.com/\<woohoo\>>some URL with \<woohoo\></>', 'some URL with <woohoo>', "\033]8;;https://example.com/<woohoo>\033\\some URL with <woohoo>\033]8;;\033\\"],
0 commit comments