Merge pull request #96 from utopia-php/chore-update-database

Update database
This commit is contained in:
Jake Barnby authored and GitHub committed 2025-01-23 17:40:14 +13:00
commit 8387c65cc7
3 files changed
+60 -60

No files matched your search

+6 -6
View File
@@ -12,7 +12,7 @@
"psr-4": {"Utopia\\Tests\\": "tests/Abuse"}
},
"scripts": {
"check": "./vendor/bin/phpstan analyse --level max src tests",
"check": "./vendor/bin/phpstan analyse --level max --memory-limit=2G src tests",
"lint": "./vendor/bin/pint --test",
"format": "./vendor/bin/pint",
"bench": "vendor/bin/phpbench run --report=aggregate"
@@ -22,13 +22,13 @@
"ext-pdo": "*",
"ext-curl": "*",
"ext-redis": "*",
"utopia-php/database": "0.56.*"
"utopia-php/database": "0.57.*"
},
"require-dev": {
"phpunit/phpunit": "^9.4",
"phpstan/phpstan": "^1.9",
"laravel/pint": "1.5.*",
"phpbench/phpbench": "^1.2"
"phpunit/phpunit": "9.*",
"phpstan/phpstan": "1.*",
"laravel/pint": "1.*",
"phpbench/phpbench": "1.*"
},
"config": {
"allow-plugins": {
Generated
+42 -42
View File
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "232e9fd40caa96ac378ecf2ef588407f",
"content-hash": "77a4ec3328d5afd067e26bc94ec924b3",
"packages": [
{
"name": "brick/math",
@@ -658,16 +658,16 @@
},
{
"name": "open-telemetry/gen-otlp-protobuf",
"version": "1.2.1",
"version": "1.5.0",
"source": {
"type": "git",
"url": "https://github.com/opentelemetry-php/gen-otlp-protobuf.git",
"reference": "66c3b98e998a726691c92e6405a82e6e7b8b169d"
"reference": "585bafddd4ae6565de154610b10a787a455c9ba0"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/opentelemetry-php/gen-otlp-protobuf/zipball/66c3b98e998a726691c92e6405a82e6e7b8b169d",
"reference": "66c3b98e998a726691c92e6405a82e6e7b8b169d",
"url": "https://api.github.com/repos/opentelemetry-php/gen-otlp-protobuf/zipball/585bafddd4ae6565de154610b10a787a455c9ba0",
"reference": "585bafddd4ae6565de154610b10a787a455c9ba0",
"shasum": ""
},
"require": {
@@ -717,7 +717,7 @@
"issues": "https://github.com/open-telemetry/opentelemetry-php/issues",
"source": "https://github.com/open-telemetry/opentelemetry-php"
},
"time": "2024-10-30T11:49:49+00:00"
"time": "2025-01-15T23:07:07+00:00"
},
{
"name": "open-telemetry/sdk",
@@ -2052,16 +2052,16 @@
},
{
"name": "utopia-php/compression",
"version": "0.1.2",
"version": "0.1.3",
"source": {
"type": "git",
"url": "https://github.com/utopia-php/compression.git",
"reference": "6062f70596415f8d5de40a589367b0eb2a435f98"
"reference": "66f093557ba66d98245e562036182016c7dcfe8a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/utopia-php/compression/zipball/6062f70596415f8d5de40a589367b0eb2a435f98",
"reference": "6062f70596415f8d5de40a589367b0eb2a435f98",
"url": "https://api.github.com/repos/utopia-php/compression/zipball/66f093557ba66d98245e562036182016c7dcfe8a",
"reference": "66f093557ba66d98245e562036182016c7dcfe8a",
"shasum": ""
},
"require": {
@@ -2092,22 +2092,22 @@
],
"support": {
"issues": "https://github.com/utopia-php/compression/issues",
"source": "https://github.com/utopia-php/compression/tree/0.1.2"
"source": "https://github.com/utopia-php/compression/tree/0.1.3"
},
"time": "2024-11-08T14:59:54+00:00"
"time": "2025-01-15T15:15:51+00:00"
},
{
"name": "utopia-php/database",
"version": "0.56.1",
"version": "0.57.1",
"source": {
"type": "git",
"url": "https://github.com/utopia-php/database.git",
"reference": "e75b30bc31bb0afd5429355c175b670cd007d628"
"reference": "6ec27ade27e1b42b79ac42b06869e9c34d529357"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/utopia-php/database/zipball/e75b30bc31bb0afd5429355c175b670cd007d628",
"reference": "e75b30bc31bb0afd5429355c175b670cd007d628",
"url": "https://api.github.com/repos/utopia-php/database/zipball/6ec27ade27e1b42b79ac42b06869e9c34d529357",
"reference": "6ec27ade27e1b42b79ac42b06869e9c34d529357",
"shasum": ""
},
"require": {
@@ -2148,22 +2148,22 @@
],
"support": {
"issues": "https://github.com/utopia-php/database/issues",
"source": "https://github.com/utopia-php/database/tree/0.56.1"
"source": "https://github.com/utopia-php/database/tree/0.57.1"
},
"time": "2025-01-15T01:57:03+00:00"
"time": "2025-01-23T04:26:35+00:00"
},
{
"name": "utopia-php/framework",
"version": "0.33.15",
"version": "0.33.16",
"source": {
"type": "git",
"url": "https://github.com/utopia-php/http.git",
"reference": "83b0628900c2c53e8c3efbf069f3e13050295edc"
"reference": "e91d4c560d1b809e25faa63d564fef034363b50f"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/utopia-php/http/zipball/83b0628900c2c53e8c3efbf069f3e13050295edc",
"reference": "83b0628900c2c53e8c3efbf069f3e13050295edc",
"url": "https://api.github.com/repos/utopia-php/http/zipball/e91d4c560d1b809e25faa63d564fef034363b50f",
"reference": "e91d4c560d1b809e25faa63d564fef034363b50f",
"shasum": ""
},
"require": {
@@ -2195,9 +2195,9 @@
],
"support": {
"issues": "https://github.com/utopia-php/http/issues",
"source": "https://github.com/utopia-php/http/tree/0.33.15"
"source": "https://github.com/utopia-php/http/tree/0.33.16"
},
"time": "2024-12-10T13:07:04+00:00"
"time": "2025-01-16T15:58:50+00:00"
},
{
"name": "utopia-php/mongo",
@@ -2536,16 +2536,16 @@
},
{
"name": "laravel/pint",
"version": "v1.5.0",
"version": "v1.20.0",
"source": {
"type": "git",
"url": "https://github.com/laravel/pint.git",
"reference": "e0a8cef58b74662f27355be9cdea0e726bbac362"
"reference": "53072e8ea22213a7ed168a8a15b96fbb8b82d44b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/pint/zipball/e0a8cef58b74662f27355be9cdea0e726bbac362",
"reference": "e0a8cef58b74662f27355be9cdea0e726bbac362",
"url": "https://api.github.com/repos/laravel/pint/zipball/53072e8ea22213a7ed168a8a15b96fbb8b82d44b",
"reference": "53072e8ea22213a7ed168a8a15b96fbb8b82d44b",
"shasum": ""
},
"require": {
@@ -2553,16 +2553,16 @@
"ext-mbstring": "*",
"ext-tokenizer": "*",
"ext-xml": "*",
"php": "^8.0"
"php": "^8.1.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.14.4",
"illuminate/view": "^9.51.0",
"laravel-zero/framework": "^9.2.0",
"mockery/mockery": "^1.5.1",
"nunomaduro/larastan": "^2.4.0",
"nunomaduro/termwind": "^1.15.1",
"pestphp/pest": "^1.22.4"
"friendsofphp/php-cs-fixer": "^3.66.0",
"illuminate/view": "^10.48.25",
"larastan/larastan": "^2.9.12",
"laravel-zero/framework": "^10.48.25",
"mockery/mockery": "^1.6.12",
"nunomaduro/termwind": "^1.17.0",
"pestphp/pest": "^2.36.0"
},
"bin": [
"builds/pint"
@@ -2598,7 +2598,7 @@
"issues": "https://github.com/laravel/pint/issues",
"source": "https://github.com/laravel/pint"
},
"time": "2023-02-14T16:31:02+00:00"
"time": "2025-01-14T16:20:53+00:00"
},
{
"name": "myclabs/deep-copy",
@@ -3040,16 +3040,16 @@
},
{
"name": "phpstan/phpstan",
"version": "1.12.15",
"version": "1.12.16",
"source": {
"type": "git",
"url": "https://github.com/phpstan/phpstan.git",
"reference": "c91d4e8bc056f46cf653656e6f71004b254574d1"
"reference": "e0bb5cb78545aae631220735aa706eac633a6be9"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/c91d4e8bc056f46cf653656e6f71004b254574d1",
"reference": "c91d4e8bc056f46cf653656e6f71004b254574d1",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/e0bb5cb78545aae631220735aa706eac633a6be9",
"reference": "e0bb5cb78545aae631220735aa706eac633a6be9",
"shasum": ""
},
"require": {
@@ -3094,7 +3094,7 @@
"type": "github"
}
],
"time": "2025-01-05T16:40:22+00:00"
"time": "2025-01-21T14:50:05+00:00"
},
{
"name": "phpunit/php-code-coverage",
+12 -12
View File
@@ -39,23 +39,23 @@ abstract class Adapter
return $this;
}
/**
* Get Params
*
* Return array of all key params
*
* @return array<string, string>
*/
/**
* Get Params
*
* Return array of all key params
*
* @return array<string, string>
*/
protected function getParams(): array
{
return $this->params;
}
/**
* Parse key with all custom attached params
*
* @return string
*/
/**
* Parse key with all custom attached params
*
* @return string
*/
protected function parseKey(): string
{
foreach ($this->getParams() as $key => $value) {