Answer the question
In order to leave comments, you need to log in
Why doesn't PHPStorm see variables in an include file?
Hello! Tell me, why if you include()
connect a file in the code and then use a variable from this file, then PHPStorm will underline it as undefined (undefined variable)?
Example:
include ('nginxconf.php');
include ('apacheconf.php');
file_put_contents("/home/user/$this->mainname.conf" , $apacheconf);
file_put_contents("/home/user/$this->mainname" , $nginxconf);
<?php
$nginxconf = "";
<?php
$apacheconf = "";
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question