mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-30 02:25:00 +00:00
apply rules rector up to php82
This commit is contained in:
@@ -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')
|
||||
{
|
||||
|
@@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user