Skip to content
Snippets Groups Projects
Commit e15ea0dd authored by Serhii Klietsov's avatar Serhii Klietsov
Browse files

Issue #3335533 by bart lambert, goodboy: D10 Compatibility

parent 6e28e7c5
Branches
Tags 8.x-1.5
No related merge requests found
......@@ -41,7 +41,7 @@ class AdvbanMiddleware implements HttpKernelInterface {
/**
* {@inheritdoc}
*/
public function handle(Request $request, int $type = self::MASTER_REQUEST, bool $catch = TRUE) : Response {
public function handle(Request $request, $type = self::MAIN_REQUEST, $catch = TRUE): Response {
$ip = $request->getClientIp();
$ban_result = $this->banIpManager->isBanned($ip, [
'expiry_check' => TRUE,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment