Updates for phpstan 1.0 level 8, fix spaces in config.master.php, add phpunit tets for math, email; update email class with more check methods

This commit is contained in:
Clemens Schwaighofer
2021-11-02 09:16:23 +09:00
parent 4c859ada01
commit 08bbc913a9
22 changed files with 692 additions and 152 deletions

View File

@@ -81,7 +81,7 @@ class Basic
/** @var string */
private $session_name = '';
/** @var string */
private $session_id = '';
private $session_id = ''; /** @phpstan-ignore-line */
// ajax flag
/** @var bool */
@@ -164,7 +164,7 @@ class Basic
// start session
session_start();
// set internal session id, we can use that later for protection check
$this->session_id = session_id() ?: '';
$this->session_id = (string)session_id();
}
}
@@ -1173,24 +1173,6 @@ class Basic
// *** UIDS END
// *** BETTER PASSWORD OPTIONS, must be used ***
// [!!! DEPRECATED !!!]
// moved to \CoreLibs\Check\Password
/**
* inits the password options set
* currently this is et empty, and the default options are used
* @return void has no reutrn
* @deprecated use This function has been removed
*/
private function passwordInit(): void
{
trigger_error('Method ' . __METHOD__ . ' has been removed', E_USER_DEPRECATED);
/* // set default password cost: use default set automatically
$this->password_options = [
// 'cost' => PASSWORD_BCRYPT_DEFAULT_COST
]; */
}
/**
* creates the password hash
* @param string $password password