1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-19 12:21:46 +02:00

removed support for PHP 7

This commit is contained in:
David Grudl
2021-12-12 04:09:30 +01:00
parent d1a3362321
commit 8915b0343c
4 changed files with 22 additions and 30 deletions

View File

@@ -147,9 +147,11 @@ if ($config['system'] === 'mysql') {
->limit(' 1; DROP TABLE users')
->offset(' 1; DROP TABLE users');
Assert::error(function () use ($fluent) {
(string) $fluent;
}, E_USER_ERROR, "Expected number, ' 1; DROP TABLE users' given.");
Assert::exception(
fn() => (string) $fluent,
Dibi\Exception::class,
"Expected number, ' 1; DROP TABLE users' given.",
);
}