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

@@ -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}");
}

View File

@@ -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');
}