I have some external libraries (mostly Redis) in my PHP project. However, Intelisense is not showing any help and Visual Studio report "Use of unknown class: 'Redis'" which is anoying. Is there a way how to solve this?
Hi,
Visual Studio needs to know the stubs of the external library, then you'll get IntelliSense and proper code validation.
You can create a dummy file anywhere in your project (e.g. .stubs.php) and copy content of following files into it https://bit.ly/2NeJdLu
.stubs.php