0

As you can see here, phpStorm is showing error on declaring const root saying: expression is not allowed as const value, but it works fin when define used.

const ROOT = realpath(__DIR__ . '/..');
define('ROOT', realpath(__DIR__ . '/..'));

enter image description here

0 Answers0