set namespace/use declaration on exception

highlighted by https://insight.sensiolabs.com/projects/6031863a-10a3-44d5-891d-ac6dac2ed65a/analyses/1?status=violations#239680028
This commit is contained in:
Julien Fastré 2015-03-31 21:32:03 +02:00
parent 38d9832b72
commit ee205d3386

View File

@ -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);
}