assert
laravel/framework
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Checks if assertion is false
assert
(
mixed $assertion
,
string $description
= ?):
bool
try {
$result
=
$this
->
connection
->
exec
(
$statement
);
\assert
(
$result
!==
false
);
return
$result
;
} catch (
PDOException $exception
) {
src/Illuminate/Database/PDO/Connection.php
try {
$stmt
=
$this
->
connection
->
query
(
$sql
);
\assert
(
$stmt
instanceof
PDOStatement
);
return new
Result
(
$stmt
);
} catch (
PDOException $exception
) {
src/Illuminate/Database/PDO/Connection.php