<?php compact(array|string $var_name, array|string ...$var_names): array
<?php $errors = []; set_error_handler(function ($errno, $errstr, $errfile, $errline) use (&$errors) { $errors[] = compact('errno', 'errstr', 'errfile', 'errline'); }); $this->errors = &$errors;