Skip to content

Commit

Permalink
Set default argument value correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Feb 23, 2019
1 parent 3852ac2 commit 363ec20
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
],

"require": {

"php": ">=7.2"
},
"require-dev": {
"phpunit/phpunit": "8.*"
Expand Down
18 changes: 10 additions & 8 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/Argument/DefaultArgumentValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

class DefaultArgumentValue extends ArgumentValue {
public function __construct(string $default) {
parent::__construct($default);
parent::__construct("__DEFAULT__");
$this->push($default);
}
}

0 comments on commit 363ec20

Please sign in to comment.