1 | <?php |
||
7 | class PagerDutyMessage |
||
8 | { |
||
9 | const EVENT_TRIGGER = 'trigger'; |
||
10 | const EVENT_RESOLVE = 'resolve'; |
||
11 | |||
12 | protected $payload = []; |
||
13 | protected $meta = []; |
||
14 | |||
15 | 66 | public static function create() |
|
19 | |||
20 | 66 | public function __construct() |
|
27 | |||
28 | 66 | public function setRoutingKey($value) |
|
32 | |||
33 | 6 | public function resolve() |
|
37 | |||
38 | 12 | public function setDedupKey($key) |
|
42 | |||
43 | 24 | public function setSummary($value) |
|
47 | |||
48 | 60 | public function setSource($value) |
|
52 | |||
53 | 6 | public function setSeverity($value) |
|
57 | |||
58 | 6 | public function setTimestamp($value) |
|
62 | |||
63 | 6 | public function setComponent($value) |
|
67 | |||
68 | 6 | public function setGroup($value) |
|
72 | |||
73 | 6 | public function setClass($value) |
|
77 | |||
78 | 6 | public function addCustomDetail($key, $value) |
|
82 | |||
83 | 66 | protected function setPayload($key, $value) |
|
89 | |||
90 | 66 | protected function setMeta($key, $value) |
|
96 | |||
97 | 66 | public function toArray() |
|
101 | } |
||
102 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: