summaryrefslogtreecommitdiffstats
path: root/lib/private/notification/action.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-09-03 12:12:10 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-09-08 09:01:01 +0200
commitacf8149f17fb940c9c9ce1519869a1de34ef6a84 (patch)
tree2de35632bdd3ed5b0ba8affce270160a84abb8dd /lib/private/notification/action.php
parent0d154595f81e9c181a73ee44650fffe78bccc002 (diff)
downloadnextcloud-server-acf8149f17fb940c9c9ce1519869a1de34ef6a84.tar.gz
nextcloud-server-acf8149f17fb940c9c9ce1519869a1de34ef6a84.zip
Add tests for Action
Diffstat (limited to 'lib/private/notification/action.php')
-rw-r--r--lib/private/notification/action.php2
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;