mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
cs: Enable more risky rules.
This commit is contained in:
parent
a43784c3a1
commit
6ce511889f
@ -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,
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user