apply rules rector up to php82

This commit is contained in:
2023-05-01 21:39:45 +02:00
parent 81e8928344
commit 6d63177ff4
733 changed files with 1257 additions and 1322 deletions

View File

@@ -27,7 +27,7 @@ class ClosingMotiveRender implements ChillEntityRenderInterface
use BoxUtilsChillEntityRenderTrait;
private const SEPARATOR = ' > ';
public function __construct(private TranslatableStringHelper $translatableStringHelper)
public function __construct(private readonly TranslatableStringHelper $translatableStringHelper)
{
}

View File

@@ -28,7 +28,7 @@ class PersonRender implements PersonRenderInterface
{
use BoxUtilsChillEntityRenderTrait;
public function __construct(private ConfigPersonAltNamesHelper $configAltNamesHelper, private EngineInterface $engine, private TranslatorInterface $translator)
public function __construct(private readonly ConfigPersonAltNamesHelper $configAltNamesHelper, private readonly EngineInterface $engine, private readonly TranslatorInterface $translator)
{
}

View File

@@ -18,7 +18,7 @@ use Chill\PersonBundle\Entity\Person\PersonResourceKind;
/**
* @implements ChillEntityRenderInterface<PersonResourceKind>
*/
final class ResourceKindRender implements ChillEntityRenderInterface
final readonly class ResourceKindRender implements ChillEntityRenderInterface
{
public function __construct(private TranslatableStringHelper $translatableStringHelper)
{

View File

@@ -25,9 +25,9 @@ use function implode;
*/
class SocialActionRender implements ChillEntityRenderInterface
{
public const AND_CHILDREN_MENTION = 'show_and_children_mention';
final public const AND_CHILDREN_MENTION = 'show_and_children_mention';
public const DEFAULT_ARGS = [
final public const DEFAULT_ARGS = [
self::SEPARATOR_KEY => ' > ',
self::NO_BADGE => false,
self::SHOW_AND_CHILDREN => false,
@@ -37,17 +37,17 @@ class SocialActionRender implements ChillEntityRenderInterface
/**
* if true, the action will not be encapsulated into a "badge".
*/
public const NO_BADGE = 'no-badge';
final public const NO_BADGE = 'no-badge';
public const SEPARATOR_KEY = 'default.separator';
final public const SEPARATOR_KEY = 'default.separator';
/**
* Show a mention "and children" on each SocialAction, if the social action
* has at least one child.
*/
public const SHOW_AND_CHILDREN = 'show_and_children';
final public const SHOW_AND_CHILDREN = 'show_and_children';
public function __construct(private TranslatableStringHelper $translatableStringHelper, private EngineInterface $engine, private TranslatorInterface $translator)
public function __construct(private readonly TranslatableStringHelper $translatableStringHelper, private readonly EngineInterface $engine, private readonly TranslatorInterface $translator)
{
}

View File

@@ -22,7 +22,7 @@ use function implode;
/**
* @implements ChillEntityRenderInterface<SocialIssue>
*/
final class SocialIssueRender implements ChillEntityRenderInterface
final readonly class SocialIssueRender implements ChillEntityRenderInterface
{
public const AND_CHILDREN_MENTION = 'show_and_children_mention';