From 7537a3ced2f5475edd8d0fc02c309285521606c1 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 12 Aug 2024 20:52:12 +0100 Subject: [PATCH] Order properties alphabetically --- src/DataTransferObject/ConfigDto.php | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/DataTransferObject/ConfigDto.php b/src/DataTransferObject/ConfigDto.php index d9b1b46..99f6fbe 100644 --- a/src/DataTransferObject/ConfigDto.php +++ b/src/DataTransferObject/ConfigDto.php @@ -139,15 +139,6 @@ final class ConfigDto )] public array $experimental; - #[Assert\Collection([ - 'ignore' => new Assert\Optional([ - new Assert\All([ - new Assert\Type('string'), - ]), - ]), - ])] - public array $git; - #[Assert\Collection( allowExtraFields: false, fields: [ @@ -166,6 +157,19 @@ final class ConfigDto )] public array $flake; + #[Assert\Collection([ + 'ignore' => new Assert\Optional([ + new Assert\All([ + new Assert\Type('string'), + ]), + ]), + ])] + public array $git; + + public bool $isDocker; + + public bool $isFlake; + #[Assert\Choice(choices: ['javascript', 'php', 'typescript'])] public string $language; @@ -259,8 +263,4 @@ final class ConfigDto ]), ])] public array $web; - - public bool $isDocker; - - public bool $isFlake; }