From ee205d33863d7c0d19af53e8d7f6a5356e68ca4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 31 Mar 2015 21:32:03 +0200 Subject: [PATCH] set namespace/use declaration on exception highlighted by https://insight.sensiolabs.com/projects/6031863a-10a3-44d5-891d-ac6dac2ed65a/analyses/1?status=violations#239680028 --- Controller/ReportController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Controller/ReportController.php b/Controller/ReportController.php index a01e005ee..aab1b341a 100644 --- a/Controller/ReportController.php +++ b/Controller/ReportController.php @@ -332,7 +332,7 @@ class ReportController extends Controller } if(intval($person_id) !== intval($report->getPerson()->getId())) { - throw new Exception( + throw new \Exception( $this->get('translator')->trans('This is not the report of the person.'), 1); }