diff options
Diffstat (limited to 'lib/private/notification/action.php')
-rw-r--r-- | lib/private/notification/action.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/notification/action.php b/lib/private/notification/action.php index f0bcb23c877..7f654bf9082 100644 --- a/lib/private/notification/action.php +++ b/lib/private/notification/action.php @@ -106,7 +106,7 @@ class Action implements IAction { if (!is_string($link) || $link === '' || isset($link[256])) { throw new \InvalidArgumentException('The given link is invalid'); } - if (!in_array($requestType, ['GET', 'POST', 'PUT', 'DELETE'])) { + if (!in_array($requestType, ['GET', 'POST', 'PUT', 'DELETE'], true)) { throw new \InvalidArgumentException('The given request type is invalid'); } $this->link = $link; |