diff --git a/.php_cs.dist.php b/.php_cs.dist.php index 239bd3eec..53a16da23 100644 --- a/.php_cs.dist.php +++ b/.php_cs.dist.php @@ -49,8 +49,8 @@ $riskyRules = [ 'fopen_flag_order' => false, 'fopen_flags' => false, // 'logical_operators' => false, - 'modernize_types_casting' => false, - 'no_homoglyph_names' => false, + // 'modernize_types_casting' => false, + // 'no_homoglyph_names' => false, // 'no_unneeded_final_method' => false, 'non_printable_character' => false, 'ordered_traits' => false, diff --git a/src/Bundle/ChillReportBundle/Controller/ReportController.php b/src/Bundle/ChillReportBundle/Controller/ReportController.php index 6760ff728..48a1a8b21 100644 --- a/src/Bundle/ChillReportBundle/Controller/ReportController.php +++ b/src/Bundle/ChillReportBundle/Controller/ReportController.php @@ -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