[HttpKernel] fixed exception constructor signature
This commit is contained in:
parent
dd8ef6bb55
commit
84c383d729
@ -18,7 +18,7 @@ namespace Symfony\Component\HttpKernel\Exception;
|
|||||||
*/
|
*/
|
||||||
class ForbiddenHttpException extends HttpException
|
class ForbiddenHttpException extends HttpException
|
||||||
{
|
{
|
||||||
public function __construct($message = '', $code = 0, \Exception $previous)
|
public function __construct($message = '', $code = 0, \Exception $previous = null)
|
||||||
{
|
{
|
||||||
if (!$message) {
|
if (!$message) {
|
||||||
$message = 'Forbidden';
|
$message = 'Forbidden';
|
||||||
|
@ -18,7 +18,7 @@ namespace Symfony\Component\HttpKernel\Exception;
|
|||||||
*/
|
*/
|
||||||
class NotFoundHttpException extends HttpException
|
class NotFoundHttpException extends HttpException
|
||||||
{
|
{
|
||||||
public function __construct($message = '', $code = 0, \Exception $previous)
|
public function __construct($message = '', $code = 0, \Exception $previous = null)
|
||||||
{
|
{
|
||||||
if (!$message) {
|
if (!$message) {
|
||||||
$message = 'Not Found';
|
$message = 'Not Found';
|
||||||
|
@ -18,7 +18,7 @@ namespace Symfony\Component\HttpKernel\Exception;
|
|||||||
*/
|
*/
|
||||||
class UnauthorizedHttpException extends HttpException
|
class UnauthorizedHttpException extends HttpException
|
||||||
{
|
{
|
||||||
public function __construct($message = '', $code = 0, \Exception $previous)
|
public function __construct($message = '', $code = 0, \Exception $previous = null)
|
||||||
{
|
{
|
||||||
if (!$message) {
|
if (!$message) {
|
||||||
$message = 'Unauthorized';
|
$message = 'Unauthorized';
|
||||||
|
Reference in New Issue
Block a user