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
Please sign in to leave a comment.
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.
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?
Code | Inspect Code... to run ALL active inspections
or
Code | Run Inspection by Name... to run specific inspection ONLY
Great thanks!!!