Skip to content

Commit

Permalink
cast code on exception with labels
Browse files Browse the repository at this point in the history
  • Loading branch information
Alban authored and etienneroudeix committed Sep 14, 2017
1 parent af81536 commit cf010b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Rxnet/Exceptions/ExceptionWithLabels.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ public function __construct($message, $labels = [], \Exception $previous = null)
var_dump($labels);
die;
}
$code = Arrays::get($labels, 'code', 500);
$code = (int) Arrays::get($labels, 'code', 500);
if($previous) {
$message.= ' > '.$previous->getMessage();
}
parent::__construct($message, $code, $previous);
}
}
}

0 comments on commit cf010b8

Please sign in to comment.