1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-30 09:19:48 +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

@@ -39,7 +39,7 @@ $tests = function ($conn) {
function () use ($conn) {
$conn->translate('SELECT 1 %ofs', -10);
},
'Dibi\NotSupportedException',
Dibi\NotSupportedException::class,
'Negative offset or limit.'
);
@@ -48,7 +48,7 @@ $tests = function ($conn) {
function () use ($conn) {
$conn->translate('SELECT 1 %lmt', -10);
},
'Dibi\NotSupportedException',
Dibi\NotSupportedException::class,
'Negative offset or limit.'
);
@@ -57,7 +57,7 @@ $tests = function ($conn) {
function () use ($conn) {
$conn->translate('SELECT 1 %ofs %lmt', 10, -10);
},
'Dibi\NotSupportedException',
Dibi\NotSupportedException::class,
'Negative offset or limit.'
);
@@ -66,7 +66,7 @@ $tests = function ($conn) {
function () use ($conn) {
$conn->translate('SELECT 1 %ofs %lmt', -10, 10);
},
'Dibi\NotSupportedException',
Dibi\NotSupportedException::class,
'Negative offset or limit.'
);
} else {
@@ -82,7 +82,7 @@ $tests = function ($conn) {
Assert::exception(
$conn->translate('SELECT 1 %ofs %lmt', 10, 10),
'DibiNotSupportedException'
Dibi\NotSupportedException::class
);
}
};