static in the context of php
private static $pageRedirectionsFilePath = __DIR__ . "/404managerRedirect.conf";
You can't use function in constant initialization. Below are methods that you can use to get the same behavior
replace a const
const MY_CONST=myFunction()
with a static function
private static function getMyConst()
{
return myFunction();
}
class Foo {
private static $bar;
static function init()
{
self::$bar = array(…);
}
}
Foo::init();