mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-01 20:43:49 +00:00
DX: apply rector rules up to php8.0
This commit is contained in:
@@ -57,10 +57,8 @@ class CustomFieldController extends AbstractController
|
||||
|
||||
/**
|
||||
* Displays a form to edit an existing CustomField entity.
|
||||
*
|
||||
* @param mixed $id
|
||||
*/
|
||||
public function editAction($id)
|
||||
public function editAction(mixed $id)
|
||||
{
|
||||
$em = $this->getDoctrine()->getManager();
|
||||
|
||||
@@ -112,10 +110,8 @@ class CustomFieldController extends AbstractController
|
||||
* Finds and displays a CustomField entity.
|
||||
*
|
||||
* @deprecated is not used since there is no link to show action
|
||||
*
|
||||
* @param mixed $id
|
||||
*/
|
||||
public function showAction($id)
|
||||
public function showAction(mixed $id)
|
||||
{
|
||||
$em = $this->getDoctrine()->getManager();
|
||||
|
||||
@@ -131,10 +127,8 @@ class CustomFieldController extends AbstractController
|
||||
|
||||
/**
|
||||
* Edits an existing CustomField entity.
|
||||
*
|
||||
* @param mixed $id
|
||||
*/
|
||||
public function updateAction(Request $request, $id)
|
||||
public function updateAction(Request $request, mixed $id)
|
||||
{
|
||||
$em = $this->getDoctrine()->getManager();
|
||||
|
||||
@@ -170,11 +164,10 @@ class CustomFieldController extends AbstractController
|
||||
*
|
||||
* @param CustomField $entity The entity
|
||||
* @param string
|
||||
* @param mixed $type
|
||||
*
|
||||
* @return \Symfony\Component\Form\Form The form
|
||||
*/
|
||||
private function createCreateForm(CustomField $entity, $type)
|
||||
private function createCreateForm(CustomField $entity, mixed $type)
|
||||
{
|
||||
$form = $this->createForm(CustomFieldType::class, $entity, [
|
||||
'action' => $this->generateUrl(
|
||||
@@ -195,11 +188,10 @@ class CustomFieldController extends AbstractController
|
||||
* Creates a form to edit a CustomField entity.
|
||||
*
|
||||
* @param CustomField $entity The entity
|
||||
* @param mixed $type
|
||||
*
|
||||
* @return \Symfony\Component\Form\Form The form
|
||||
*/
|
||||
private function createEditForm(CustomField $entity, $type)
|
||||
private function createEditForm(CustomField $entity, mixed $type)
|
||||
{
|
||||
$form = $this->createForm(CustomFieldType::class, $entity, [
|
||||
'action' => $this->generateUrl('customfield_update', ['id' => $entity->getId()]),
|
||||
|
Reference in New Issue
Block a user