mirror of
https://github.com/standardebooks/web.git
synced 2025-07-15 10:56:46 -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
|
@ -30,6 +30,7 @@ if($httpMethod == Enums\HttpMethod::Patch){
|
|||
// HTTP 303, See other
|
||||
http_response_code(Enums\HttpCode::SeeOther->value);
|
||||
|
||||
/** @var string $redirect */
|
||||
$redirect = $_SERVER['HTTP_REFERER'] ?? '/';
|
||||
header('Location: ' . $redirect);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue