Skip to content

Commit

Permalink
Default values in constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
iGusev committed Jun 30, 2015
1 parent 594d758 commit 87a85bb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Types/ForceReply.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class ForceReply extends BaseType
*/
protected $selective;

function __construct($forceReply, $selective)
function __construct($forceReply = true, $selective = null)
{
$this->forceReply = $forceReply;
$this->selective = $selective;
Expand Down
2 changes: 1 addition & 1 deletion src/Types/ReplyKeyboardHide.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class ReplyKeyboardHide extends BaseType
*/
protected $selective;

function __construct($hideKeyboard, $selective)
function __construct($hideKeyboard = true, $selective = null)
{
$this->hideKeyboard = $hideKeyboard;
$this->selective = $selective;
Expand Down
2 changes: 1 addition & 1 deletion src/Types/ReplyKeyboardMarkup.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class ReplyKeyboardMarkup extends BaseType
*/
protected $selective;

function __construct($keyboard, $oneTimeKeyboard, $resizeKeyboard, $selective)
function __construct($keyboard, $oneTimeKeyboard = null, $resizeKeyboard = null, $selective = null)
{
$this->keyboard = $keyboard;
$this->oneTimeKeyboard = $oneTimeKeyboard;
Expand Down

0 comments on commit 87a85bb

Please sign in to comment.