trigger_error
laravel/framework
Supported Versions: PHP 4 >= 4.0.1, PHP 5, PHP 7, PHP 8
Generates a user-level error/warning/notice message
Alias
user_error
trigger_error
(
string $message
,
int $error_level
=
E_USER_NOTICE
):
bool
foreach (
$this
as
$key
) {
if (!
$values
->
valid
()) {
trigger_error
(
$errorMessage
,
E_USER_WARNING
);
break;
}
src/Illuminate/Collections/LazyCollection.php
}
if (
$values
->
valid
()) {
trigger_error
(
$errorMessage
,
E_USER_WARNING
);
}
});
}
src/Illuminate/Collections/LazyCollection.php
{
$this
->
withDeprecationHandling
();
trigger_error
(
'Something is deprecated'
,
E_USER_DEPRECATED
);
$this
->
assertTrue
(
$this
->
deprecationsFound
);
}
tests/Testing/Concerns/InteractsWithDeprecationHandlingTest.php
$this
->
expectException
(
ErrorException
::class);
$this
->
expectExceptionMessage
(
'Something is deprecated'
);
trigger_error
(
'Something is deprecated'
,
E_USER_DEPRECATED
);
}
protected function
tearDown
():
void
tests/Testing/Concerns/InteractsWithDeprecationHandlingTest.php