fix: revert accidentally committed working tree changes

Reverts composer.lock (database 5.3.0→5.2.1), Model.php TYPE_ID,
Document.php/Row.php $sequence type changes, and OpenAPI/Swagger
id type additions that were unintentionally included in dd1a3d82.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jake Barnby
2026-02-18 20:58:54 +13:00
co-authored by Claude Opus 4.6
parent 0d1a6e07b4
commit a3503f4124
6 changed files with 22 additions and 25 deletions
Generated
+18 -18
View File
@@ -3797,16 +3797,16 @@
},
{
"name": "utopia-php/database",
"version": "5.3.0",
"version": "5.2.1",
"source": {
"type": "git",
"url": "https://github.com/utopia-php/database.git",
"reference": "5e49f32ebb6e40a78209231564c40e5068810429"
"reference": "adfdf201144353a1d2ce14bb197ab746079894e0"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/utopia-php/database/zipball/5e49f32ebb6e40a78209231564c40e5068810429",
"reference": "5e49f32ebb6e40a78209231564c40e5068810429",
"url": "https://api.github.com/repos/utopia-php/database/zipball/adfdf201144353a1d2ce14bb197ab746079894e0",
"reference": "adfdf201144353a1d2ce14bb197ab746079894e0",
"shasum": ""
},
"require": {
@@ -3849,9 +3849,9 @@
],
"support": {
"issues": "https://github.com/utopia-php/database/issues",
"source": "https://github.com/utopia-php/database/tree/5.3.0"
"source": "https://github.com/utopia-php/database/tree/5.2.1"
},
"time": "2026-02-17T11:50:01+00:00"
"time": "2026-02-16T11:01:13+00:00"
},
{
"name": "utopia-php/detector",
@@ -5385,16 +5385,16 @@
"packages-dev": [
{
"name": "appwrite/sdk-generator",
"version": "1.9.3",
"version": "1.9.2",
"source": {
"type": "git",
"url": "https://github.com/appwrite/sdk-generator.git",
"reference": "5a8a304e404c84539f3ac6562c736f8c7ef2bef2"
"reference": "74de906ea5051030c5299a5d4aa74d963a531130"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/5a8a304e404c84539f3ac6562c736f8c7ef2bef2",
"reference": "5a8a304e404c84539f3ac6562c736f8c7ef2bef2",
"url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/74de906ea5051030c5299a5d4aa74d963a531130",
"reference": "74de906ea5051030c5299a5d4aa74d963a531130",
"shasum": ""
},
"require": {
@@ -5430,9 +5430,9 @@
"description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms",
"support": {
"issues": "https://github.com/appwrite/sdk-generator/issues",
"source": "https://github.com/appwrite/sdk-generator/tree/1.9.3"
"source": "https://github.com/appwrite/sdk-generator/tree/1.9.2"
},
"time": "2026-02-17T11:48:05+00:00"
"time": "2026-02-16T06:59:54+00:00"
},
{
"name": "brianium/paratest",
@@ -6778,16 +6778,16 @@
},
{
"name": "phpunit/phpunit",
"version": "12.5.12",
"version": "12.5.11",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git",
"reference": "418e06b3b46b0d54bad749ff4907fc7dfb530199"
"reference": "9b518cb40f9474572c9f0178e96ff3dc1cf02bf1"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/418e06b3b46b0d54bad749ff4907fc7dfb530199",
"reference": "418e06b3b46b0d54bad749ff4907fc7dfb530199",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/9b518cb40f9474572c9f0178e96ff3dc1cf02bf1",
"reference": "9b518cb40f9474572c9f0178e96ff3dc1cf02bf1",
"shasum": ""
},
"require": {
@@ -6856,7 +6856,7 @@
"support": {
"issues": "https://github.com/sebastianbergmann/phpunit/issues",
"security": "https://github.com/sebastianbergmann/phpunit/security/policy",
"source": "https://github.com/sebastianbergmann/phpunit/tree/12.5.12"
"source": "https://github.com/sebastianbergmann/phpunit/tree/12.5.11"
},
"funding": [
{
@@ -6880,7 +6880,7 @@
"type": "tidelift"
}
],
"time": "2026-02-16T08:34:36+00:00"
"time": "2026-02-10T12:32:02+00:00"
},
{
"name": "psr/cache",
@@ -839,7 +839,6 @@ class OpenAPI3 extends Format
case 'string':
case 'datetime':
case 'payload':
case 'id':
$type = 'string';
break;
@@ -819,7 +819,6 @@ class Swagger2 extends Format
switch ($rule['type']) {
case 'string':
case 'datetime':
case 'id':
$type = 'string';
break;
-1
View File
@@ -17,7 +17,6 @@ abstract class Model
public const TYPE_PAYLOAD = 'payload';
public const TYPE_ARRAY = 'array';
public const TYPE_ENUM = 'enum';
public const TYPE_ID = 'id';
/**
* @var bool
@@ -37,7 +37,7 @@ class Document extends Any
'example' => '5e5ea5c16897e',
])
->addRule('$sequence', [
'type' => self::TYPE_ID,
'type' => self::TYPE_STRING,
'description' => 'Document sequence ID.',
'default' => '',
'example' => '1',
@@ -85,7 +85,7 @@ class Document extends Any
if (!$document->isEmpty()) {
$sequence = $document->getAttribute('$sequence', '');
$document->setAttribute('$sequence', $sequence);
$document->setAttribute('$sequence', (string)$sequence);
}
foreach ($document->getAttributes() as $attribute) {
+2 -2
View File
@@ -37,7 +37,7 @@ class Row extends Any
'example' => '5e5ea5c16897e',
])
->addRule('$sequence', [
'type' => self::TYPE_ID,
'type' => self::TYPE_STRING,
'description' => 'Row sequence ID.',
'default' => '',
'example' => '1',
@@ -83,7 +83,7 @@ class Row extends Any
$document->removeAttribute('$collection');
$document->removeAttribute('$tenant');
$sequence = $document->getAttribute('$sequence', '');
$document->setAttribute('$sequence', $sequence);
$document->setAttribute('$sequence', (string)$sequence);
foreach ($document->getAttributes() as $column) {
if (\is_array($column)) {