1
0
Fork 0
mirror of synced 2024-05-20 20:52:36 +12:00

Run tests

This commit is contained in:
fogelito 2024-03-28 12:05:11 +02:00
parent dfeaec0f7b
commit 7a865dbda9
3 changed files with 5 additions and 6 deletions

8
composer.lock generated
View file

@ -1560,12 +1560,12 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/utopia-php/database.git", "url": "https://github.com/utopia-php/database.git",
"reference": "c3b76a5dd864791744168dcc6fb32eb159a08691" "reference": "180bb663bdd0050ae24886808ea34eafc8c4e5e8"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/utopia-php/database/zipball/c3b76a5dd864791744168dcc6fb32eb159a08691", "url": "https://api.github.com/repos/utopia-php/database/zipball/180bb663bdd0050ae24886808ea34eafc8c4e5e8",
"reference": "c3b76a5dd864791744168dcc6fb32eb159a08691", "reference": "180bb663bdd0050ae24886808ea34eafc8c4e5e8",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1609,7 +1609,7 @@
"issues": "https://github.com/utopia-php/database/issues", "issues": "https://github.com/utopia-php/database/issues",
"source": "https://github.com/utopia-php/database/tree/fix-transaction-rollback" "source": "https://github.com/utopia-php/database/tree/fix-transaction-rollback"
}, },
"time": "2024-03-28T09:11:01+00:00" "time": "2024-03-28T09:46:18+00:00"
}, },
{ {
"name": "utopia-php/domains", "name": "utopia-php/domains",

View file

@ -84,7 +84,6 @@ services:
- ./public:/usr/src/code/public - ./public:/usr/src/code/public
- ./src:/usr/src/code/src - ./src:/usr/src/code/src
- ./dev:/usr/src/code/dev - ./dev:/usr/src/code/dev
- ./vendor/utopia-php/database:/usr/src/code/vendor/utopia-php/database
depends_on: depends_on:
- mariadb - mariadb
- redis - redis

View file

@ -302,7 +302,7 @@ class Exception extends \Exception
$this->type = $type; $this->type = $type;
$this->code = $code ?? $this->errors[$type]['code']; $this->code = $code ?? $this->errors[$type]['code'];
// shmuel // todo: Handle better PDOExceptions
if(is_string($this->code)){ if(is_string($this->code)){
$this->code = 500; $this->code = 500;
} }