[HttpKernel] fixed exception constructor signature

This commit is contained in:
Fabien Potencier 2010-09-01 09:48:48 +02:00
parent dd8ef6bb55
commit 84c383d729
3 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ namespace Symfony\Component\HttpKernel\Exception;
*/
class ForbiddenHttpException extends HttpException
{
public function __construct($message = '', $code = 0, \Exception $previous)
public function __construct($message = '', $code = 0, \Exception $previous = null)
{
if (!$message) {
$message = 'Forbidden';

View File

@ -18,7 +18,7 @@ namespace Symfony\Component\HttpKernel\Exception;
*/
class NotFoundHttpException extends HttpException
{
public function __construct($message = '', $code = 0, \Exception $previous)
public function __construct($message = '', $code = 0, \Exception $previous = null)
{
if (!$message) {
$message = 'Not Found';

View File

@ -18,7 +18,7 @@ namespace Symfony\Component\HttpKernel\Exception;
*/
class UnauthorizedHttpException extends HttpException
{
public function __construct($message = '', $code = 0, \Exception $previous)
public function __construct($message = '', $code = 0, \Exception $previous = null)
{
if (!$message) {
$message = 'Unauthorized';