@@ -49,7 +49,7 @@ |
||
49 | 49 | { |
50 | 50 | $data = json_decode($json, true); |
51 | 51 | |
52 | - if (!is_array($data) || !isset($data['object']) || $data['object'] !== $this->acceptsObject()) { |
|
52 | + if (!is_array($data) || !isset($data[ 'object' ]) || $data[ 'object' ] !== $this->acceptsObject()) { |
|
53 | 53 | throw new InvalidArgumentException('Invalid object'); |
54 | 54 | } |
55 | 55 |