Skip to content

Commit 4ac1a39

Browse files
committed
6654: Upgrade codebase with rector fixes for PHP 8.5
1 parent 5f9e761 commit 4ac1a39

27 files changed

Lines changed: 33 additions & 28 deletions

config/bundles.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
return [
46
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
57
Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true],

config/reference.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
// This file is auto-generated and is for apps only. Bundles SHOULD NOT rely on its content.
46

57
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
@@ -1371,7 +1373,7 @@
13711373
* mercure?: bool|array{
13721374
* enabled?: bool|Param, // Default: false
13731375
* hub_url?: scalar|Param|null, // The URL sent in the Link HTTP header. If not set, will default to the URL for MercureBundle's default hub. // Default: null
1374-
* include_type?: bool|Param, // Always include @type in updates (including delete ones). // Default: false
1376+
* include_type?: bool|Param, // Always include @var in updates (including delete ones). // Default: false
13751377
* },
13761378
* messenger?: bool|array{
13771379
* enabled?: bool|Param, // Default: true

rector.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@
1818

1919
// define sets of rules
2020
$rectorConfig->sets([
21-
LevelSetList::UP_TO_PHP_83,
22-
SymfonySetList::SYMFONY_64,
21+
LevelSetList::UP_TO_PHP_85,
22+
SymfonySetList::SYMFONY_74,
2323
SymfonySetList::CONFIGS,
2424
SymfonySetList::SYMFONY_CODE_QUALITY,
2525
SymfonySetList::SYMFONY_CONSTRUCTOR_INJECTION,
2626
Rector\PHPUnit\Set\PHPUnitSetList::PHPUNIT_100,
2727
Rector\PHPUnit\Set\PHPUnitSetList::PHPUNIT_110,
28+
Rector\PHPUnit\Set\PHPUnitSetList::PHPUNIT_120,
2829
]);
2930
};

src/Admin/Field/AdvisoryCountField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class AdvisoryCountField implements FieldInterface
1414

1515
public static function new(string $propertyName, TranslatableInterface|string|bool|null $label = null): self
1616
{
17-
return (new self())
17+
return new self()
1818
->setProperty($propertyName)
1919
->setLabel($label)
2020

src/Admin/Field/ChangesField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class ChangesField implements FieldInterface
1414

1515
public static function new(string $propertyName, TranslatableInterface|string|bool|null $label = null): self
1616
{
17-
return (new self())
17+
return new self()
1818
->setProperty($propertyName)
1919
->setLabel($label)
2020

src/Admin/Field/ClonedByField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class ClonedByField implements FieldInterface
1414

1515
public static function new(string $propertyName, TranslatableInterface|string|bool|null $label = null): self
1616
{
17-
return (new self())
17+
return new self()
1818
->setProperty($propertyName)
1919
->setLabel($label)
2020

src/Admin/Field/ConfigFilePathField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class ConfigFilePathField implements FieldInterface
1414

1515
public static function new(string $propertyName, TranslatableInterface|string|bool|null $label = null): self
1616
{
17-
return (new self())
17+
return new self()
1818
->setProperty($propertyName)
1919
->setLabel($label)
2020

src/Admin/Field/DomainField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class DomainField implements FieldInterface
1414

1515
public static function new(string $propertyName, TranslatableInterface|string|bool|null $label = null): self
1616
{
17-
return (new self())
17+
return new self()
1818
->setProperty($propertyName)
1919
->setLabel($label)
2020

src/Admin/Field/EolTypeField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class EolTypeField implements FieldInterface
1414

1515
public static function new(string $propertyName, TranslatableInterface|string|bool|null $label = null): self
1616
{
17-
return (new self())
17+
return new self()
1818
->setProperty($propertyName)
1919
->setLabel($label)
2020

src/Admin/Field/LatestStatusField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class LatestStatusField implements FieldInterface
1414

1515
public static function new(string $propertyName, TranslatableInterface|string|bool|null $label = null): self
1616
{
17-
return (new self())
17+
return new self()
1818
->setProperty($propertyName)
1919
->setLabel($label)
2020

0 commit comments

Comments
 (0)