mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 02:53:50 +00:00
apply rules rector up to php82
This commit is contained in:
@@ -26,9 +26,9 @@ use function ctype_digit;
|
||||
final class ChillPersonMoveCommand extends Command
|
||||
{
|
||||
public function __construct(
|
||||
private PersonMove $mover,
|
||||
private EntityManagerInterface $em,
|
||||
private LoggerInterface $chillLogger
|
||||
private readonly PersonMove $mover,
|
||||
private readonly EntityManagerInterface $em,
|
||||
private readonly LoggerInterface $chillLogger
|
||||
) {
|
||||
parent::__construct('chill:person:move');
|
||||
}
|
||||
@@ -116,7 +116,7 @@ final class ChillPersonMoveCommand extends Command
|
||||
}
|
||||
$id = $input->getOption($name);
|
||||
|
||||
if (ctype_digit($id) === false) {
|
||||
if (ctype_digit((string) $id) === false) {
|
||||
throw new RuntimeException("The id in \"{$name}\" field does not contains "
|
||||
. "only digits: {$id}");
|
||||
}
|
||||
|
@@ -22,7 +22,7 @@ use Symfony\Component\Console\Output\OutputInterface;
|
||||
|
||||
class RemoveOldDraftAccompanyingPeriodCommand extends Command
|
||||
{
|
||||
public function __construct(private LoggerInterface $logger, private OldDraftAccompanyingPeriodRemoverInterface $remover)
|
||||
public function __construct(private readonly LoggerInterface $logger, private readonly OldDraftAccompanyingPeriodRemoverInterface $remover)
|
||||
{
|
||||
parent::__construct('chill:person:remove-old-draft-period');
|
||||
}
|
||||
|
Reference in New Issue
Block a user