简体   繁体   中英

How to configure the visual study code to recognize php with docker?

I have the following problem with visual studio code

在此处输入图片说明

What happens is that I have docker and in the containers is where I have LAMP, the problem is that I get these notices and I can not even use the heredoc or nowdoc notation for php.

How can I fix this problem?

as you can see on this (my own) question some time ago, one mentioned that the volumes work like a one way.

set PHP path from host to docker container

someone answered but i couldnt get it running like he wrote. in my case I simply installed php7 on my localhost and set the path to VSC. maybe this helps you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM