Skip to content

Commit 8cc0c68

Browse files
author
Robin de Graaf
committed
Small fixes
1 parent fd811f0 commit 8cc0c68

File tree

7 files changed

+11
-6
lines changed

7 files changed

+11
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
composer.lock
44
vendor
55
coverage
6+
composer.phar

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Parable Console
22

3+
## 1.0.1
4+
5+
- Make sure that all nullable property values are set to `null` explicitly.
6+
37
## 1.0.0
48

59
Just a re-release locking the interface in place. First final release!

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dependencies:
2-
composer install \
2+
./composer.phar install \
33
--no-interaction \
44
--no-plugins \
55
--no-scripts

src/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Application
1212
protected array $commands = [];
1313
/** @var string[] */
1414
protected array $commandNames = [];
15-
protected ?Command $activeCommand;
15+
protected ?Command $activeCommand = null;
1616
protected ?string $defaultCommand = null;
1717
protected bool $onlyUseDefaultCommand = false;
1818

src/Parameter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ class Parameter
1515

1616
/** @var string[] */
1717
protected array $parameters = [];
18-
protected ?string $scriptName;
19-
protected ?string $commandName;
18+
protected ?string $scriptName = null;
19+
protected ?string $commandName = null;
2020
protected array $options = [];
2121
protected array $flagOptions = [];
2222
protected array $arguments = [];

src/Parameters/AbstractParameter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
abstract class AbstractParameter
66
{
7-
protected ?string $name;
7+
protected ?string $name = null;
88
protected mixed $defaultValue;
99
protected bool $hasBeenProvided = false;
1010
protected ?string $providedValue = null;

src/Parameters/ArgumentParameter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
class ArgumentParameter extends AbstractParameter
99
{
1010
protected int $required;
11-
protected ?int $order;
11+
protected ?int $order = null;
1212

1313
public function __construct(
1414
string $name,

0 commit comments

Comments
 (0)