mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-09 00:04:59 +00:00
DX: apply rector rulesset up to PHP72
This commit is contained in:
@@ -119,7 +119,7 @@ class CustomFieldType extends AbstractType
|
||||
public function configureOptions(OptionsResolver $resolver)
|
||||
{
|
||||
$resolver->setDefaults([
|
||||
'data_class' => 'Chill\CustomFieldsBundle\Entity\CustomField',
|
||||
'data_class' => \Chill\CustomFieldsBundle\Entity\CustomField::class,
|
||||
]);
|
||||
|
||||
$resolver->setRequired(['type', 'group_widget'])
|
||||
|
@@ -38,7 +38,7 @@ class ChoicesListType extends AbstractType
|
||||
$formData = $form->getData();
|
||||
|
||||
if (null === $formData['slug']) {
|
||||
$slug = uniqid(mt_rand(), true);
|
||||
$slug = uniqid(random_int(0, mt_getrandmax()), true);
|
||||
|
||||
$data['slug'] = $slug;
|
||||
$event->setData($data);
|
||||
|
@@ -49,7 +49,7 @@ class CustomFieldType extends AbstractType
|
||||
{
|
||||
$resolver
|
||||
->setRequired(['group'])
|
||||
->addAllowedTypes('group', ['Chill\CustomFieldsBundle\Entity\CustomFieldsGroup']);
|
||||
->addAllowedTypes('group', [\Chill\CustomFieldsBundle\Entity\CustomFieldsGroup::class]);
|
||||
}
|
||||
|
||||
public function getBlockPrefix()
|
||||
|
Reference in New Issue
Block a user