Skip to content

Commit 7315ba2

Browse files
fixed the attribute ordering
1 parent a58547e commit 7315ba2

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/Database/Database.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5607,8 +5607,8 @@ public function createDocument(string $collection, Document $document): Document
56075607
$this->adapter->getMinDateTime(),
56085608
$this->adapter->getMaxDateTime(),
56095609
$this->adapter->getSupportForAttributes(),
5610-
$this->adapter->getSupportForUnsignedBigInt(),
5611-
null
5610+
supportUnsignedBigInt: $this->adapter->getSupportForUnsignedBigInt(),
5611+
currentDocument: null
56125612
);
56135613
if (!$structure->isValid($document)) {
56145614
throw new StructureException($structure->getDescription());
@@ -5717,8 +5717,8 @@ public function createDocuments(
57175717
$this->adapter->getMinDateTime(),
57185718
$this->adapter->getMaxDateTime(),
57195719
$this->adapter->getSupportForAttributes(),
5720-
$this->adapter->getSupportForUnsignedBigInt(),
5721-
null
5720+
supportUnsignedBigInt: $this->adapter->getSupportForUnsignedBigInt(),
5721+
currentDocument: null
57225722
);
57235723
if (!$validator->isValid($document)) {
57245724
throw new StructureException($validator->getDescription());
@@ -6290,8 +6290,8 @@ public function updateDocument(string $collection, string $id, Document $documen
62906290
$this->adapter->getMinDateTime(),
62916291
$this->adapter->getMaxDateTime(),
62926292
$this->adapter->getSupportForAttributes(),
6293-
$this->adapter->getSupportForUnsignedBigInt(),
6294-
$old
6293+
supportUnsignedBigInt: $this->adapter->getSupportForUnsignedBigInt(),
6294+
currentDocument: $old
62956295
);
62966296
if (!$structureValidator->isValid($document)) { // Make sure updated structure still apply collection rules (if any)
62976297
throw new StructureException($structureValidator->getDescription());
@@ -7305,8 +7305,8 @@ public function upsertDocumentsWithIncrease(
73057305
$this->adapter->getMinDateTime(),
73067306
$this->adapter->getMaxDateTime(),
73077307
$this->adapter->getSupportForAttributes(),
7308-
$this->adapter->getSupportForUnsignedBigInt(),
7309-
$old->isEmpty() ? null : $old
7308+
supportUnsignedBigInt: $this->adapter->getSupportForUnsignedBigInt(),
7309+
currentDocument: $old->isEmpty() ? null : $old
73107310
);
73117311

73127312
if (!$validator->isValid($document)) {

src/Database/Validator/Query/Filter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function __construct(
3232
private readonly int $maxValuesCount = 5000,
3333
private readonly \DateTime $minAllowedDate = new \DateTime('0000-01-01'),
3434
private readonly \DateTime $maxAllowedDate = new \DateTime('9999-12-31'),
35-
private bool $supportForAttributes = true,
35+
private readonly bool $supportForAttributes = true,
3636
private readonly bool $supportUnsignedBigInt = true
3737
) {
3838
foreach ($attributes as $attribute) {

0 commit comments

Comments
 (0)