mirror of
https://github.com/standardebooks/web.git
synced 2025-07-05 22:30:30 -04:00
Update PHPStan and Safe PHP, and review codebase for further type correctness
This commit is contained in:
parent
e2e14a3551
commit
9d1b66d19e
35 changed files with 301 additions and 169 deletions
|
@ -71,6 +71,7 @@ Db::Connect(DATABASE_DEFAULT_DATABASE, DATABASE_DEFAULT_HOST);
|
|||
Session::InitializeFromCookie();
|
||||
|
||||
if(Session::$User === null){
|
||||
/** @var ?string $httpBasicAuthLogin */
|
||||
$httpBasicAuthLogin = $_SERVER['PHP_AUTH_USER'] ?? null;
|
||||
|
||||
if($httpBasicAuthLogin !== null){
|
||||
|
@ -78,6 +79,7 @@ if(Session::$User === null){
|
|||
|
||||
$session = new Session();
|
||||
try{
|
||||
/** @var ?string $password */
|
||||
$password = $_SERVER['PHP_AUTH_PW'] ?? null;
|
||||
if($password == ''){
|
||||
$password = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue