Catch exceptions of undefined array fields instead of crash.
set_error_handler('handleError');
$data = [];
try {
echo $data['test'];
} catch (ArrayFieldNotSet $exception) {
echo $exception->getMessage();
}
restore_error_handler();
| Name | Name | Last commit date | ||
|---|---|---|---|---|