some backend admin class var declarations fixes

This commit is contained in:
Clemens Schwaighofer
2021-11-02 10:14:55 +09:00
parent f9072f64f1
commit 6147d28b37
2 changed files with 10 additions and 12 deletions

View File

@@ -43,8 +43,6 @@ parameters:
- www/lib/smarty-*/
# ignore composer
- www/vendor
# ignore tst folder
- www/tests
# ignore errores with
ignoreErrors:
# this is ignored for now

View File

@@ -44,7 +44,7 @@ class Backend extends \CoreLibs\DB\IO
'action', 'action_id', 'action_sub_id', 'action_yes', 'action_flag',
'action_menu', 'action_value', 'action_error', 'action_loaded'
];
/** @var string */
/** @var string|null */
public $action;
/** @var string|int */
public $action_id;
@@ -76,12 +76,12 @@ class Backend extends \CoreLibs\DB\IO
// error/warning/info messages
/** @var array<mixed> */
public $messages = [];
/** @var int */
public $error = 0;
/** @var int */
public $warning = 0;
/** @var int */
public $info = 0;
/** @var bool */
public $error = false;
/** @var bool */
public $warning = false;
/** @var bool */
public $info = false;
// internal lang & encoding vars
/** @var string */
public $lang_dir = '';
@@ -479,13 +479,13 @@ class Backend extends \CoreLibs\DB\IO
];
switch ($level) {
case 'info':
$this->info = 1;
$this->info = true;
break;
case 'warning':
$this->warning = 1;
$this->warning = true;
break;
case 'error':
$this->error = 1;
$this->error = true;
break;
}
}