Skip to content

Commit

Permalink
Merge pull request #19 from fcastilloes/fix-type
Browse files Browse the repository at this point in the history
Fix type for newParam
  • Loading branch information
fcastilloes committed May 23, 2017
2 parents bd3d9bc + 83a4692 commit 4cacd7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ public function getParams(): array;

/**
* @param string $name
* @param string $value
* @param mixed $value
* @param string $type
* @return Param
*/
public function newParam(
string $name,
string $value = '',
$value = '',
string $type = Param::TYPE_STRING
): Param;

Expand Down
4 changes: 2 additions & 2 deletions src/Api/ParamAccessorTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ public function getParams(): array

/**
* @param string $name
* @param string $value
* @param mixed $value
* @param string $type
* @return ParamInterface
*/
public function newParam(
string $name,
string $value = '',
$value = '',
string $type = Param::TYPE_STRING
): ParamInterface {
return new Param($name, $value, $type);
Expand Down

0 comments on commit 4cacd7e

Please sign in to comment.