setViewer(PhabricatorUser::getOmnipotentUser()) ->withApplicationPHIDs($maniphest->getPHID()) ->execute(); foreach ($app_emails as $app_email) { $app_email->setConfigValue($config_key, $value); $app_email->save(); } } echo "Done.\n";