From 7e9e40d03e650852f527c045fcc1be3e7fe59113 Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Mon, 13 Dec 2021 16:42:40 +0100 Subject: [PATCH] chore(deps): update utopia dependencies --- composer.json | 2 +- composer.lock | 90 +++++++++---------- src/Appwrite/Auth/Validator/Password.php | 4 +- .../Database/Validator/Authorization.php | 4 +- .../Database/Validator/Collection.php | 2 +- src/Appwrite/Database/Validator/CustomId.php | 2 +- .../Database/Validator/DocumentId.php | 4 +- src/Appwrite/Database/Validator/Key.php | 4 +- .../Database/Validator/Permissions.php | 4 +- src/Appwrite/Database/Validator/Structure.php | 4 +- src/Appwrite/Database/Validator/UID.php | 4 +- src/Appwrite/Network/Validator/CNAME.php | 4 +- src/Appwrite/Network/Validator/Domain.php | 4 +- src/Appwrite/Network/Validator/Email.php | 4 +- src/Appwrite/Network/Validator/Host.php | 4 +- src/Appwrite/Network/Validator/IP.php | 4 +- src/Appwrite/Network/Validator/Origin.php | 4 +- src/Appwrite/Network/Validator/URL.php | 4 +- src/Appwrite/Template/Template.php | 2 +- 19 files changed, 77 insertions(+), 77 deletions(-) diff --git a/composer.json b/composer.json index f534615f2..d2953bf5b 100644 --- a/composer.json +++ b/composer.json @@ -51,7 +51,7 @@ "utopia-php/registry": "0.5.*", "utopia-php/preloader": "0.2.*", "utopia-php/domains": "1.1.*", - "utopia-php/swoole": "0.2.*", + "utopia-php/swoole": "0.3.*", "utopia-php/storage": "0.5.*", "utopia-php/websocket": "0.0.*", "utopia-php/image": "0.5.*", diff --git a/composer.lock b/composer.lock index b541ac91d..33a29d90b 100644 --- a/composer.lock +++ b/composer.lock @@ -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": "7e24a95bc534ed39b042f19b27268de9", + "content-hash": "9dcf48d4173daea87c60b464b104cd22", "packages": [ { "name": "adhocore/jwt", @@ -2138,16 +2138,16 @@ }, { "name": "utopia-php/database", - "version": "0.12.0", + "version": "0.12.1", "source": { "type": "git", "url": "https://github.com/utopia-php/database.git", - "reference": "102ee1d21fd55fc92dc7a07b60672a98ae49be26" + "reference": "af512b7a00cc7c6e30fa03efbc5fd7e77a93e2df" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/database/zipball/102ee1d21fd55fc92dc7a07b60672a98ae49be26", - "reference": "102ee1d21fd55fc92dc7a07b60672a98ae49be26", + "url": "https://api.github.com/repos/utopia-php/database/zipball/af512b7a00cc7c6e30fa03efbc5fd7e77a93e2df", + "reference": "af512b7a00cc7c6e30fa03efbc5fd7e77a93e2df", "shasum": "" }, "require": { @@ -2155,7 +2155,7 @@ "ext-pdo": "*", "ext-redis": "*", "mongodb/mongodb": "1.8.0", - "php": ">=7.1", + "php": ">=8.0", "utopia-php/cache": "0.4.*", "utopia-php/framework": "0.*.*" }, @@ -2195,9 +2195,9 @@ ], "support": { "issues": "https://github.com/utopia-php/database/issues", - "source": "https://github.com/utopia-php/database/tree/0.12.0" + "source": "https://github.com/utopia-php/database/tree/0.12.1" }, - "time": "2021-11-24T14:53:22+00:00" + "time": "2021-12-13T14:57:32+00:00" }, { "name": "utopia-php/domains", @@ -2255,24 +2255,24 @@ }, { "name": "utopia-php/framework", - "version": "0.19.1", + "version": "0.19.2", "source": { "type": "git", "url": "https://github.com/utopia-php/framework.git", - "reference": "cc7629b5f7a8f45912ec2e069b7f14e361e41c34" + "reference": "49e4374b97c0f4d14bc84b424bdc9c3b7747e15f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/framework/zipball/cc7629b5f7a8f45912ec2e069b7f14e361e41c34", - "reference": "cc7629b5f7a8f45912ec2e069b7f14e361e41c34", + "url": "https://api.github.com/repos/utopia-php/framework/zipball/49e4374b97c0f4d14bc84b424bdc9c3b7747e15f", + "reference": "49e4374b97c0f4d14bc84b424bdc9c3b7747e15f", "shasum": "" }, "require": { - "php": ">=7.3.0" + "php": ">=8.0.0" }, "require-dev": { - "phpunit/phpunit": "^9.4", - "vimeo/psalm": "4.0.1" + "phpunit/phpunit": "^9.5.10", + "vimeo/psalm": "4.13.1" }, "type": "library", "autoload": { @@ -2298,9 +2298,9 @@ ], "support": { "issues": "https://github.com/utopia-php/framework/issues", - "source": "https://github.com/utopia-php/framework/tree/0.19.1" + "source": "https://github.com/utopia-php/framework/tree/0.19.2" }, - "time": "2021-11-25T16:11:40+00:00" + "time": "2021-12-07T09:29:35+00:00" }, { "name": "utopia-php/image", @@ -2567,16 +2567,16 @@ }, { "name": "utopia-php/storage", - "version": "0.5.0", + "version": "0.5.1", "source": { "type": "git", "url": "https://github.com/utopia-php/storage.git", - "reference": "92ae20c7a2ac329f573a58a82dc245134cc63408" + "reference": "e672aa3fc2a8ba689aff65f68ff29f1d608223b8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/storage/zipball/92ae20c7a2ac329f573a58a82dc245134cc63408", - "reference": "92ae20c7a2ac329f573a58a82dc245134cc63408", + "url": "https://api.github.com/repos/utopia-php/storage/zipball/e672aa3fc2a8ba689aff65f68ff29f1d608223b8", + "reference": "e672aa3fc2a8ba689aff65f68ff29f1d608223b8", "shasum": "" }, "require": { @@ -2613,33 +2613,33 @@ ], "support": { "issues": "https://github.com/utopia-php/storage/issues", - "source": "https://github.com/utopia-php/storage/tree/0.5.0" + "source": "https://github.com/utopia-php/storage/tree/0.5.1" }, - "time": "2021-04-15T16:43:12+00:00" + "time": "2021-12-13T15:17:14+00:00" }, { "name": "utopia-php/swoole", - "version": "0.2.4", + "version": "0.3.2", "source": { "type": "git", "url": "https://github.com/utopia-php/swoole.git", - "reference": "37d8c64b536d6bc7da4f0f5a934a0ec44885abf4" + "reference": "2b714eddf77cd5eda1889219c9656d7c0a63ce73" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/swoole/zipball/37d8c64b536d6bc7da4f0f5a934a0ec44885abf4", - "reference": "37d8c64b536d6bc7da4f0f5a934a0ec44885abf4", + "url": "https://api.github.com/repos/utopia-php/swoole/zipball/2b714eddf77cd5eda1889219c9656d7c0a63ce73", + "reference": "2b714eddf77cd5eda1889219c9656d7c0a63ce73", "shasum": "" }, "require": { "ext-swoole": "*", - "php": ">=7.4", + "php": ">=8.0", "utopia-php/framework": "0.*.*" }, "require-dev": { "phpunit/phpunit": "^9.3", - "swoole/ide-helper": "4.5.5", - "vimeo/psalm": "4.0.1" + "swoole/ide-helper": "4.8.3", + "vimeo/psalm": "4.15.0" }, "type": "library", "autoload": { @@ -2669,9 +2669,9 @@ ], "support": { "issues": "https://github.com/utopia-php/swoole/issues", - "source": "https://github.com/utopia-php/swoole/tree/0.2.4" + "source": "https://github.com/utopia-php/swoole/tree/0.3.2" }, - "time": "2021-06-22T10:49:24+00:00" + "time": "2021-12-13T15:37:41+00:00" }, { "name": "utopia-php/system", @@ -5665,23 +5665,23 @@ }, { "name": "symfony/console", - "version": "v5.4.0", + "version": "v5.4.1", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "ec3661faca1d110d6c307e124b44f99ac54179e3" + "reference": "9130e1a0fc93cb0faadca4ee917171bd2ca9e5f4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/ec3661faca1d110d6c307e124b44f99ac54179e3", - "reference": "ec3661faca1d110d6c307e124b44f99ac54179e3", + "url": "https://api.github.com/repos/symfony/console/zipball/9130e1a0fc93cb0faadca4ee917171bd2ca9e5f4", + "reference": "9130e1a0fc93cb0faadca4ee917171bd2ca9e5f4", "shasum": "" }, "require": { "php": ">=7.2.5", "symfony/deprecation-contracts": "^2.1|^3", "symfony/polyfill-mbstring": "~1.0", - "symfony/polyfill-php73": "^1.8", + "symfony/polyfill-php73": "^1.9", "symfony/polyfill-php80": "^1.16", "symfony/service-contracts": "^1.1|^2|^3", "symfony/string": "^5.1|^6.0" @@ -5744,7 +5744,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v5.4.0" + "source": "https://github.com/symfony/console/tree/v5.4.1" }, "funding": [ { @@ -5760,7 +5760,7 @@ "type": "tidelift" } ], - "time": "2021-11-29T15:30:56+00:00" + "time": "2021-12-09T11:22:43+00:00" }, { "name": "symfony/polyfill-intl-grapheme", @@ -6170,16 +6170,16 @@ }, { "name": "symfony/string", - "version": "v6.0.0", + "version": "v6.0.1", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "ba727797426af0f587f4800566300bdc0cda0777" + "reference": "0cfed595758ec6e0a25591bdc8ca733c1896af32" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/ba727797426af0f587f4800566300bdc0cda0777", - "reference": "ba727797426af0f587f4800566300bdc0cda0777", + "url": "https://api.github.com/repos/symfony/string/zipball/0cfed595758ec6e0a25591bdc8ca733c1896af32", + "reference": "0cfed595758ec6e0a25591bdc8ca733c1896af32", "shasum": "" }, "require": { @@ -6235,7 +6235,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v6.0.0" + "source": "https://github.com/symfony/string/tree/v6.0.1" }, "funding": [ { @@ -6251,7 +6251,7 @@ "type": "tidelift" } ], - "time": "2021-10-29T07:35:21+00:00" + "time": "2021-12-08T15:13:44+00:00" }, { "name": "textalk/websocket", diff --git a/src/Appwrite/Auth/Validator/Password.php b/src/Appwrite/Auth/Validator/Password.php index d7168774b..3e9bb6fbf 100644 --- a/src/Appwrite/Auth/Validator/Password.php +++ b/src/Appwrite/Auth/Validator/Password.php @@ -18,7 +18,7 @@ class Password extends Validator * * @return string */ - public function getDescription() + public function getDescription(): string { return 'Password must be at least 8 characters'; } @@ -30,7 +30,7 @@ class Password extends Validator * * @return bool */ - public function isValid($value) + public function isValid($value): bool { if (!\is_string($value)) { return false; diff --git a/src/Appwrite/Database/Validator/Authorization.php b/src/Appwrite/Database/Validator/Authorization.php index 4a7f82b39..914c3e40d 100644 --- a/src/Appwrite/Database/Validator/Authorization.php +++ b/src/Appwrite/Database/Validator/Authorization.php @@ -46,7 +46,7 @@ class Authorization extends Validator * * @return string */ - public function getDescription() + public function getDescription(): string { return $this->message; } @@ -60,7 +60,7 @@ class Authorization extends Validator * * @return bool */ - public function isValid($permissions) + public function isValid($permissions): bool { if (!self::$status) { return true; diff --git a/src/Appwrite/Database/Validator/Collection.php b/src/Appwrite/Database/Validator/Collection.php index 45faa2801..139ff20cd 100644 --- a/src/Appwrite/Database/Validator/Collection.php +++ b/src/Appwrite/Database/Validator/Collection.php @@ -39,7 +39,7 @@ class Collection extends Structure * * @return bool */ - public function isValid($document) + public function isValid($document): bool { $document = new Document( \array_merge($this->merge, ($document instanceof Document) ? $document->getArrayCopy() : $document) diff --git a/src/Appwrite/Database/Validator/CustomId.php b/src/Appwrite/Database/Validator/CustomId.php index 59c14de8b..39a8500f8 100644 --- a/src/Appwrite/Database/Validator/CustomId.php +++ b/src/Appwrite/Database/Validator/CustomId.php @@ -13,7 +13,7 @@ class CustomId extends Key { * * @return bool */ - public function isValid($value) + public function isValid($value): bool { return $value == 'unique()' || parent::isValid($value); diff --git a/src/Appwrite/Database/Validator/DocumentId.php b/src/Appwrite/Database/Validator/DocumentId.php index fcc2a57ae..988497cfe 100644 --- a/src/Appwrite/Database/Validator/DocumentId.php +++ b/src/Appwrite/Database/Validator/DocumentId.php @@ -42,7 +42,7 @@ class DocumentId extends Validator * * @return string */ - public function getDescription() + public function getDescription(): string { return $this->message; } @@ -56,7 +56,7 @@ class DocumentId extends Validator * * @return bool */ - public function isValid($id) + public function isValid($id): bool { $document = $this->database->getDocument($id); diff --git a/src/Appwrite/Database/Validator/Key.php b/src/Appwrite/Database/Validator/Key.php index 1aab06f76..328f06fec 100644 --- a/src/Appwrite/Database/Validator/Key.php +++ b/src/Appwrite/Database/Validator/Key.php @@ -18,7 +18,7 @@ class Key extends Validator * * @return string */ - public function getDescription() + public function getDescription(): string { return $this->message; } @@ -32,7 +32,7 @@ class Key extends Validator * * @return bool */ - public function isValid($value) + public function isValid($value): bool { if (!\is_string($value)) { return false; diff --git a/src/Appwrite/Database/Validator/Permissions.php b/src/Appwrite/Database/Validator/Permissions.php index 2c90eef60..1419c3e7c 100644 --- a/src/Appwrite/Database/Validator/Permissions.php +++ b/src/Appwrite/Database/Validator/Permissions.php @@ -34,7 +34,7 @@ class Permissions extends Validator * * @return string */ - public function getDescription() + public function getDescription(): string { return $this->message; } @@ -48,7 +48,7 @@ class Permissions extends Validator * * @return bool */ - public function isValid($value) + public function isValid($value): bool { if (!\is_array($value) && !empty($value)) { $this->message = 'Invalid permissions data structure'; diff --git a/src/Appwrite/Database/Validator/Structure.php b/src/Appwrite/Database/Validator/Structure.php index 7f3307476..6cd143a8f 100644 --- a/src/Appwrite/Database/Validator/Structure.php +++ b/src/Appwrite/Database/Validator/Structure.php @@ -109,7 +109,7 @@ class Structure extends Validator * * @return string */ - public function getDescription() + public function getDescription(): string { return 'Invalid document structure: '.$this->message; } @@ -123,7 +123,7 @@ class Structure extends Validator * * @return bool */ - public function isValid($document) + public function isValid($document): bool { $document = (\is_array($document)) ? new Document($document) : $document; diff --git a/src/Appwrite/Database/Validator/UID.php b/src/Appwrite/Database/Validator/UID.php index 8e60ec063..ebab6b462 100644 --- a/src/Appwrite/Database/Validator/UID.php +++ b/src/Appwrite/Database/Validator/UID.php @@ -13,7 +13,7 @@ class UID extends Validator * * @return string */ - public function getDescription() + public function getDescription(): string { return 'Invalid UID format'; } @@ -27,7 +27,7 @@ class UID extends Validator * * @return bool */ - public function isValid($value) + public function isValid($value): bool { if ($value === 0) { // TODO Deprecate confition when we get the chance. return true; diff --git a/src/Appwrite/Network/Validator/CNAME.php b/src/Appwrite/Network/Validator/CNAME.php index 12b88908f..93a302b96 100644 --- a/src/Appwrite/Network/Validator/CNAME.php +++ b/src/Appwrite/Network/Validator/CNAME.php @@ -22,7 +22,7 @@ class CNAME extends Validator /** * @return string */ - public function getDescription() + public function getDescription(): string { return 'Invalid CNAME record'; } @@ -34,7 +34,7 @@ class CNAME extends Validator * * @return bool */ - public function isValid($domain) + public function isValid($domain): bool { if (!is_string($domain)) { return false; diff --git a/src/Appwrite/Network/Validator/Domain.php b/src/Appwrite/Network/Validator/Domain.php index 8a70ec8b0..9db664131 100644 --- a/src/Appwrite/Network/Validator/Domain.php +++ b/src/Appwrite/Network/Validator/Domain.php @@ -20,7 +20,7 @@ class Domain extends Validator * * @return string */ - public function getDescription() + public function getDescription(): string { return 'Value must be a valid domain'; } @@ -35,7 +35,7 @@ class Domain extends Validator * @param mixed $value * @return bool */ - public function isValid($value) + public function isValid($value): bool { if (empty($value)) { return false; diff --git a/src/Appwrite/Network/Validator/Email.php b/src/Appwrite/Network/Validator/Email.php index ab3a324ea..efc1a5d5b 100644 --- a/src/Appwrite/Network/Validator/Email.php +++ b/src/Appwrite/Network/Validator/Email.php @@ -20,7 +20,7 @@ class Email extends Validator * * @return string */ - public function getDescription() + public function getDescription(): string { return 'Value must be a valid email address'; } @@ -33,7 +33,7 @@ class Email extends Validator * @param mixed $value * @return bool */ - public function isValid($value) + public function isValid($value): bool { if (!\filter_var($value, FILTER_VALIDATE_EMAIL)) { return false; diff --git a/src/Appwrite/Network/Validator/Host.php b/src/Appwrite/Network/Validator/Host.php index b0f8b2307..703907c3d 100644 --- a/src/Appwrite/Network/Validator/Host.php +++ b/src/Appwrite/Network/Validator/Host.php @@ -30,7 +30,7 @@ class Host extends Validator * * @return string */ - public function getDescription() + public function getDescription(): string { return 'URL host must be one of: ' . \implode(', ', $this->whitelist); } @@ -43,7 +43,7 @@ class Host extends Validator * @param mixed $value * @return bool */ - public function isValid($value) + public function isValid($value): bool { $urlValidator = new URL(); diff --git a/src/Appwrite/Network/Validator/IP.php b/src/Appwrite/Network/Validator/IP.php index 5d7833da6..c9b50fe3c 100644 --- a/src/Appwrite/Network/Validator/IP.php +++ b/src/Appwrite/Network/Validator/IP.php @@ -46,7 +46,7 @@ class IP extends Validator * * @return string */ - public function getDescription() + public function getDescription(): string { return 'Value must be a valid IP address'; } @@ -59,7 +59,7 @@ class IP extends Validator * @param mixed $value * @return bool */ - public function isValid($value) + public function isValid($value): bool { switch ($this->type) { case self::ALL: diff --git a/src/Appwrite/Network/Validator/Origin.php b/src/Appwrite/Network/Validator/Origin.php index 9677bc14e..385f9e2dc 100644 --- a/src/Appwrite/Network/Validator/Origin.php +++ b/src/Appwrite/Network/Validator/Origin.php @@ -84,7 +84,7 @@ class Origin extends Validator } } - public function getDescription() + public function getDescription(): string { if (!\array_key_exists($this->client, $this->platforms)) { return 'Unsupported platform'; @@ -102,7 +102,7 @@ class Origin extends Validator * * @return bool */ - public function isValid($origin) + public function isValid($origin): bool { if (!is_string($origin)) { return false; diff --git a/src/Appwrite/Network/Validator/URL.php b/src/Appwrite/Network/Validator/URL.php index d26159381..61d1941e0 100644 --- a/src/Appwrite/Network/Validator/URL.php +++ b/src/Appwrite/Network/Validator/URL.php @@ -20,7 +20,7 @@ class URL extends Validator * * @return string */ - public function getDescription() + public function getDescription(): string { return 'Value must be a valid URL'; } @@ -33,7 +33,7 @@ class URL extends Validator * @param mixed $value * @return bool */ - public function isValid($value) + public function isValid($value): bool { if (\filter_var($value, FILTER_VALIDATE_URL) === false) { return false; diff --git a/src/Appwrite/Template/Template.php b/src/Appwrite/Template/Template.php index 7c175de77..f2343d441 100644 --- a/src/Appwrite/Template/Template.php +++ b/src/Appwrite/Template/Template.php @@ -63,7 +63,7 @@ class Template extends View * * @throws Exception */ - public function render($minify = true) + public function render($minify = true): string { if ($this->rendered) { // Don't render any template return '';