Make classes readonly when possible

This commit is contained in:
Alejandro Celaya
2024-11-09 09:55:51 +01:00
parent d6b103de83
commit 72f1e243b5
16 changed files with 40 additions and 40 deletions

View File

@@ -11,7 +11,7 @@ use Symfony\Component\Console\Output\OutputInterface;
use function sprintf;
readonly final class EndDateOption
final readonly class EndDateOption
{
private DateOption $dateOption;

View File

@@ -18,7 +18,7 @@ use function array_unique;
use function Shlinkio\Shlink\Core\ArrayUtils\flatten;
use function Shlinkio\Shlink\Core\splitByComma;
readonly final class ShortUrlDataInput
final readonly class ShortUrlDataInput
{
public function __construct(Command $command, private bool $longUrlAsOption = false)
{

View File

@@ -10,7 +10,7 @@ use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
readonly final class ShortUrlIdentifierInput
final readonly class ShortUrlIdentifierInput
{
public function __construct(Command $command, string $shortCodeDesc, string $domainDesc)
{

View File

@@ -11,7 +11,7 @@ use Symfony\Component\Console\Output\OutputInterface;
use function sprintf;
readonly final class StartDateOption
final readonly class StartDateOption
{
private DateOption $dateOption;