Skip to content

Commit

Permalink
Fix #981: PHP 7.3 compatibility issues fixes 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
yogeshmpawar committed Sep 11, 2020
1 parent 3ece44d commit 52f6ed5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Common/CommandArguments.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ public function arg($arg)
*/
public function args($args)
{
$func_args = func_get_args();
if (!is_array($args)) {
$args = func_get_args();
$args = $func_args;
}
$this->arguments .= ' ' . implode(' ', array_map('static::escape', $args));
return $this;
Expand Down
3 changes: 2 additions & 1 deletion src/Task/ApiGen/ApiGen.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ public function __construct($pathToApiGen = null)
*/
public function args($args)
{
$func_args = func_get_args();
if (!is_array($args)) {
$args = func_get_args();
$args = $func_args;
}
$args = array_map(function ($arg) {
if (preg_match('/^\w+$/', trim($arg)) === 1) {
Expand Down

0 comments on commit 52f6ed5

Please sign in to comment.