Skip to content

Commit

Permalink
Avoid override existing properties in failure response (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-lot authored and chalasr committed Dec 15, 2016
1 parent c517bfb commit 84cfab5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Response/JWTAuthenticationFailureResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@ public function getMessage()
*/
public function setData($data = [])
{
parent::setData(['code' => $this->statusCode, 'message' => $this->message] + (array) $data);
parent::setData((array) $data + ['code' => $this->statusCode, 'message' => $this->message]);
}
}

0 comments on commit 84cfab5

Please sign in to comment.