Skip to content

Commit 45a668a

Browse files
df2k2lbajsarowicz
andauthored
Update lib/internal/Magento/Framework/App/Request/Http.php
Co-authored-by: Lukasz Bajsarowicz <lukasz.bajsarowicz@gmail.com>
1 parent 01309d8 commit 45a668a

File tree

1 file changed

+1
-2
lines changed
  • lib/internal/Magento/Framework/App/Request

1 file changed

+1
-2
lines changed

lib/internal/Magento/Framework/App/Request/Http.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,7 @@ public function __sleep()
413413
public function isSafeMethod()
414414
{
415415
if ($this->isSafeMethod === null) {
416-
$this->isSafeMethod = isset($_SERVER['REQUEST_METHOD'])
417-
&& (in_array($_SERVER['REQUEST_METHOD'], $this->safeRequestTypes));
416+
$this->isSafeMethod = in_array($_SERVER['REQUEST_METHOD'] ?? null, $this->safeRequestTypes, true);
418417
}
419418
return $this->isSafeMethod;
420419
}

0 commit comments

Comments
 (0)