mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
cs: Enable more risky rules.
This commit is contained in:
@@ -24,7 +24,6 @@ use Symfony\Component\Form\Extension\Core\Type\FormType;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\Security\Core\Role\Role;
|
||||
use function count;
|
||||
use function intval;
|
||||
|
||||
/**
|
||||
* Class ReportController.
|
||||
@@ -145,7 +144,7 @@ class ReportController extends AbstractController
|
||||
);
|
||||
}
|
||||
|
||||
if (intval($person_id) !== intval($report->getPerson()->getId())) {
|
||||
if ((int) $person_id !== (int) ($report->getPerson()->getId())) {
|
||||
throw new RuntimeException(
|
||||
$this->get('translator')->trans('This is not the report of the person.'),
|
||||
1
|
||||
|
Reference in New Issue
Block a user