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

@@ -22,9 +22,9 @@ use libphonenumber\PhoneNumber;
class ShortMessage
{
public const PRIORITY_LOW = 'low';
final public const PRIORITY_LOW = 'low';
public const PRIORITY_MEDIUM = 'medium';
final public const PRIORITY_MEDIUM = 'medium';
public function __construct(private string $content, private PhoneNumber $phoneNumber, private string $priority = 'low')
{

View File

@@ -25,7 +25,7 @@ use Symfony\Component\Messenger\Handler\MessageHandlerInterface;
*/
class ShortMessageHandler implements MessageHandlerInterface
{
public function __construct(private ShortMessageTransporterInterface $messageTransporter)
public function __construct(private readonly ShortMessageTransporterInterface $messageTransporter)
{
}

View File

@@ -20,7 +20,7 @@ namespace Chill\MainBundle\Service\ShortMessage;
class ShortMessageTransporter implements ShortMessageTransporterInterface
{
public function __construct(private ShortMessageSenderInterface $sender)
public function __construct(private readonly ShortMessageSenderInterface $sender)
{
}