|
@@ -38,14 +38,14 @@ |
|
|
block discarded – undo |
|
38
|
38
|
class UnsupportedMediaType extends ClientErrorException |
|
39
|
39
|
{ |
|
40
|
40
|
|
|
41
|
|
- private $supportedMediaTypes = []; |
|
|
41
|
+ private $supportedMediaTypes = [ ]; |
|
42
|
42
|
|
|
43
|
43
|
/** |
|
44
|
44
|
* @param mixed $supportedMediaTypes a list of supported media types to give |
|
45
|
45
|
* the client a clue as to what is expected |
|
46
|
46
|
* @param string $message a message from the offending section of code |
|
47
|
47
|
*/ |
|
48
|
|
- public function __construct(array $supportedMediaTypes = [], $message = "") |
|
|
48
|
+ public function __construct(array $supportedMediaTypes = [ ], $message = "") |
|
49
|
49
|
{ |
|
50
|
50
|
parent::__construct($message, 415); |
|
51
|
51
|
$this->setSupportedMediaTypes($supportedMediaTypes); |
Please login to merge, or discard this patch.