Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

Commit

Permalink
Allow PelException without arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
weberhofer committed Feb 2, 2017
1 parent 58c17b8 commit ab13e6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PelException.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class PelException extends \Exception
* any number of arguments to be used with
* the format string.
*/
public function __construct($fmt, $args)
public function __construct($fmt, $args = null)
{
$args = func_get_args();
$fmt = array_shift($args);
Expand Down

0 comments on commit ab13e6a

Please sign in to comment.