1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-19 20:33:37 +02:00

used PHP 7.1 features

- ::class
- ... argument unpacking
- removed call_user_func
- operator ??
- list()
- short <?=
This commit is contained in:
David Grudl
2017-06-09 12:21:23 +02:00
parent 750d70c77a
commit 3891625cd1
27 changed files with 100 additions and 109 deletions

View File

@@ -15,16 +15,16 @@ $conn->loadFile(__DIR__ . "/data/$config[system].sql");
/*Assert::exception(function () use ($conn) {
$conn->rollback();
}, 'Dibi\Exception');
}, Dibi\Exception::class);
Assert::exception(function () use ($conn) {
$conn->commit();
}, 'Dibi\Exception');
}, Dibi\Exception::class);
$conn->begin();
Assert::exception(function () use ($conn) {
$conn->begin();
}, 'Dibi\Exception');
}, Dibi\Exception::class);
*/