fixed incorrect reference to self::getEnvironment()