mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-22 15:43:51 +00:00
DX: apply rector rules up to php8.0
This commit is contained in:
@@ -24,29 +24,8 @@ use function in_array;
|
||||
|
||||
class RoleScopeScopePresence extends ConstraintValidator
|
||||
{
|
||||
/**
|
||||
* @var LoggerInterface
|
||||
*/
|
||||
private $logger;
|
||||
|
||||
/**
|
||||
* @var RoleProvider
|
||||
*/
|
||||
private $roleProvider;
|
||||
|
||||
/**
|
||||
* @var TranslatorInterface
|
||||
*/
|
||||
private $translator;
|
||||
|
||||
public function __construct(
|
||||
RoleProvider $roleProvider,
|
||||
LoggerInterface $logger,
|
||||
TranslatorInterface $translator
|
||||
) {
|
||||
$this->roleProvider = $roleProvider;
|
||||
$this->logger = $logger;
|
||||
$this->translator = $translator;
|
||||
public function __construct(private RoleProvider $roleProvider, private LoggerInterface $logger, private TranslatorInterface $translator)
|
||||
{
|
||||
}
|
||||
|
||||
public function validate($value, Constraint $constraint)
|
||||
|
@@ -19,16 +19,8 @@ use Symfony\Component\Validator\ConstraintValidator;
|
||||
|
||||
final class ValidPhonenumber extends ConstraintValidator
|
||||
{
|
||||
private LoggerInterface $logger;
|
||||
|
||||
private PhoneNumberHelperInterface $phonenumberHelper;
|
||||
|
||||
public function __construct(
|
||||
LoggerInterface $logger,
|
||||
PhoneNumberHelperInterface $phonenumberHelper
|
||||
) {
|
||||
$this->phonenumberHelper = $phonenumberHelper;
|
||||
$this->logger = $logger;
|
||||
public function __construct(private LoggerInterface $logger, private PhoneNumberHelperInterface $phonenumberHelper)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user