apply rector rules

This commit is contained in:
2023-07-28 02:40:02 +02:00
parent 157cdf6dfc
commit f570fe92a5
112 changed files with 252 additions and 562 deletions

View File

@@ -32,10 +32,7 @@ final class CustomFieldsChoiceTest extends KernelTestCase
*/
private $cfChoice;
/**
* @var \Chill\CustomFieldsBundle\Service\CustomFieldProvider
*/
private $cfProvider;
private ?object $cfProvider = null;
protected function setUp(): void
{

View File

@@ -24,10 +24,7 @@ use function count;
*/
final class CustomFieldsNumberTest extends \Symfony\Bundle\FrameworkBundle\Test\WebTestCase
{
/**
* @var CustomFieldNumber
*/
private $customFieldNumber;
private ?object $customFieldNumber = null;
/**
* @var FormBuilderInterface

View File

@@ -24,10 +24,7 @@ final class CustomFieldsTextTest extends WebTestCase
{
use CustomFieldTestHelper;
/**
* @var \Chill\CustomFieldsBundle\Service\CustomFieldProvider
*/
private $customFieldProvider;
private ?object $customFieldProvider = null;
protected function setUp(): void
{

View File

@@ -23,15 +23,9 @@ use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
*/
final class CustomFieldsHelperTest extends KernelTestCase
{
/**
* @var CustomFieldsHelper
*/
private $cfHelper;
private ?object $cfHelper = null;
/**
* @var CustomField
*/
private $randomCFText;
private \Chill\CustomFieldsBundle\Entity\CustomField $randomCFText;
protected function setUp(): void
{

View File

@@ -24,15 +24,9 @@ use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
*/
final class CustomFieldRenderingTwigTest extends KernelTestCase
{
/**
* @var CustomFieldProvider
*/
private $cfProvider;
private ?object $cfProvider = null;
/**
* @var CustomFieldRenderingTwig
*/
private $cfRendering;
private ?object $cfRendering = null;
protected function setUp(): void
{

View File

@@ -26,15 +26,9 @@ use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
*/
final class CustomFieldsGroupRenderingTwigTest extends KernelTestCase
{
/**
* @var CustomFieldProvider
*/
private $cfProvider;
private ?object $cfProvider = null;
/**
* @var CustomFieldsGroupRenderingTwig
*/
private $cfRendering;
private ?object $cfRendering = null;
protected function setUp(): void
{