mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-20 05:35:00 +00:00
Apply rector rules: symfony up to 54
This commit is contained in:
@@ -116,9 +116,8 @@ class Notification implements TrackUpdateInterface
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="text", options={"default": ""})
|
||||
*
|
||||
* @Assert\NotBlank(message="notification.Title must be defined")
|
||||
*/
|
||||
#[Assert\NotBlank(message: 'notification.Title must be defined')]
|
||||
private string $title = '';
|
||||
|
||||
/**
|
||||
@@ -187,10 +186,9 @@ class Notification implements TrackUpdateInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* @Assert\Callback
|
||||
*
|
||||
* @param array $payload
|
||||
*/
|
||||
#[Assert\Callback]
|
||||
public function assertCountAddresses(ExecutionContextInterface $context, $payload): void
|
||||
{
|
||||
if (0 === (\count($this->getAddressesEmails()) + \count($this->getAddressees()))) {
|
||||
|
Reference in New Issue
Block a user