This is the line of code:
require_once dirname( __DIR__, 2 ) . '/vendor/autoload.php';
The code works, but PhpStorm complains with:
Path 'C:/project/src/Container/vendor/autoload.php' not found
The correct path is:
C:/project/src/vendor/autoload.php
If I use a relative path, PhpStorm doesn't complain:
require_once '../../vendor/autoload.php'; // no complaints
So it looks like PhpStorm is not recognizing the 2nd parameter of dirname($path, $levels), where I'm specifying to go up 2 levels.
dirname() is such a basic PHP function that I'm really surprised that PhpStorm doesn't recognize the $levels parameter.
I would prefer to keep inspections on. Is there a fix for this?