Skip to content

Commit

Permalink
fix: #273 mode strict 2
Browse files Browse the repository at this point in the history
  • Loading branch information
bohdan-shulha committed Nov 22, 2024
1 parent b911747 commit 25f7a28
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/Models/DeploymentData/Process.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
use Exception;
use Illuminate\Validation\ValidationException;
use Spatie\LaravelData\Attributes\DataCollectionOf;
use Spatie\LaravelData\Attributes\Validation\Distinct;
use Spatie\LaravelData\Attributes\Validation\Exists;
use Spatie\LaravelData\Attributes\Validation\RequiredWith;
use Spatie\LaravelData\Attributes\Validation\Rule;
Expand Down Expand Up @@ -57,7 +56,7 @@ public function __construct(
#[Rule(new UniqueInArray('targetPort'))]
/* @var NodePort[] */
public array $ports,
#[DataCollectionOf(Caddy::class), Distinct('id', mode: Distinct::Strict)]
#[DataCollectionOf(Caddy::class), UniqueInArray('id')]
/* @var Caddy[] */
public array $caddy,
#[Rule(new RequiredIfArrayHas('caddy.*.targetProtocol', 'fastcgi'))]
Expand Down

0 comments on commit 25f7a28

Please sign in to comment.