mpyw / exceper

Provides temporary error handler automatically using set_error_handler() and restore_error_handler().

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

New signature for specifying error code

mpyw opened this issue · comments

commented
// Currently supported
static mpyw\Exceper\Convert::to(string $class, callable $callback, int $types = E_ALL | E_STRICT): mixed
static mpyw\Exceper\Convert::to{$class}(callable $callback, int $types = E_ALL | E_STRICT): mixed

// Should be added
static mpyw\Exceper\Convert::to(string $class, int $code, callable $callback, int $types = E_ALL | E_STRICT): mixed
static mpyw\Exceper\Convert::to{$class}(int $code, callable $callback, int $types = E_ALL | E_STRICT): mixed
commented

it needs hard refactoring...