mirror of
https://github.com/standardebooks/web.git
synced 2025-07-16 03:16:36 -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
|
@ -32,7 +32,9 @@ try{
|
|||
}
|
||||
catch(Exceptions\LoginRequiredException){
|
||||
if(isset($_SERVER['HTTP_REFERER'])){
|
||||
Template::RedirectToLogin(true, $_SERVER['HTTP_REFERER']);
|
||||
/** @var string $httpReferer */
|
||||
$httpReferer = $_SERVER['HTTP_REFERER'];
|
||||
Template::RedirectToLogin(true, $httpReferer);
|
||||
}
|
||||
else{
|
||||
preg_match('|(^/bulk-downloads/[^/]+?)/|ius', $path, $matches);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue