From acf8149f17fb940c9c9ce1519869a1de34ef6a84 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 3 Sep 2015 12:12:10 +0200 Subject: Add tests for Action --- lib/private/notification/action.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private/notification/action.php') 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; -- cgit v1.2.3