mirror of
https://github.com/roundcube/roundcubemail.git
synced 2026-03-07 00:26:48 +01:00
Fix "static_lambda" CS (#9276)
This commit is contained in:
@@ -1031,7 +1031,7 @@ class rcmail extends rcube
|
||||
$trash_mbox = $this->config->get('trash_mbox');
|
||||
|
||||
if ($logout_purge && !empty($trash_mbox)) {
|
||||
$getMessages = function ($folder) use ($logout_purge, $storage) {
|
||||
$getMessages = static function ($folder) use ($logout_purge, $storage) {
|
||||
if (is_numeric($logout_purge)) {
|
||||
$now = new DateTime('now');
|
||||
$interval = new DateInterval('P' . intval($logout_purge) . 'D');
|
||||
|
||||
@@ -2024,11 +2024,11 @@ class rcmail_output_html extends rcmail_output
|
||||
$is_empty = true;
|
||||
}
|
||||
|
||||
$merge_script_files = function ($output, $script) {
|
||||
$merge_script_files = static function ($output, $script) {
|
||||
return $output . html::script($script);
|
||||
};
|
||||
|
||||
$merge_scripts = function ($output, $script) {
|
||||
$merge_scripts = static function ($output, $script) {
|
||||
return $output . html::script([], $script);
|
||||
};
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ class rcmail_sendmail
|
||||
$this->options['sendmail_delay'] = (int) $this->rcmail->config->get('sendmail_delay');
|
||||
|
||||
if (empty($options['error_handler'])) {
|
||||
$this->options['error_handler'] = function () { return false; };
|
||||
$this->options['error_handler'] = static function () { return false; };
|
||||
}
|
||||
|
||||
if (empty($this->data['mode'])) {
|
||||
|
||||
Reference in New Issue
Block a user