Skip to content

Latest commit

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

ArrayCatch

Catch exceptions of undefined array fields instead of crash.

Usage

set_error_handler('handleError');
$data = [];
try {
echo $data['test'];
} catch (ArrayFieldNotSet $exception) {
echo $exception->getMessage();
}
restore_error_handler();

About

Catch exceptions of undefined array fields instead of crash.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages