Skip to content

Commit b7b5f9b

Browse files
authored
Fixed small error in error handler (#88)
1 parent a215373 commit b7b5f9b

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/ErrorHandler.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,14 @@ public static function handle()
2929
}
3030

3131
/**
32-
* Errors to Exceptions.
32+
* @param $code
33+
* @param $message
34+
*
35+
* @throws \Exception
3336
*/
3437
public static function errorToException($code, $message)
3538
{
36-
if (!(error_reporting() & $err_no)) {
39+
if (!(error_reporting() & $code)) {
3740
return; // Silenced
3841
}
3942

0 commit comments

Comments
 (0)