file name not found warning

Hello Community

I have this code:

if (file_exists('./index.local.php')) {
     require './index.local.php';
}


Of course, as the file doesn't exists, I get a warning.

Is there a phpdoc statement to prevent the warning?  I'd like to keep my code warning-free :)

TIA!

greg

4 comments
Comment actions Permalink

Hi there,

Alt+Enter on error/warning, choose appropriate entry from menu, use Right Arrow key to open submenu and shoose "Suppress for statement..." entry.

0
Comment actions Permalink

Perfect :D thanks!

BTW is it possible to have a list of all files which have an error or a warning? like the "todo" panel?

0
Comment actions Permalink

Code | Inspect Code... to run ALL active inspections
or
Code | Run Inspection by Name... to run specific inspection ONLY

0
Comment actions Permalink

Great thanks!!!

0

Please sign in to leave a comment.