cs: Enable more risky rules.

This commit is contained in:
Pol Dellaiera
2021-11-30 12:03:02 +01:00
parent a43784c3a1
commit 6ce511889f
2 changed files with 3 additions and 4 deletions

View File

@@ -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