Skip to content

Commit 512dffb

Browse files
Type tightening
1 parent cb74b78 commit 512dffb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Runner/Config/Creator.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -30,28 +30,28 @@ class Creator extends Runner
3030
*
3131
* @var bool
3232
*/
33-
private $force;
33+
private bool $force = false;
3434

3535
/**
3636
* Extend existing config or create new one
3737
*
3838
* @var string
3939
*/
40-
private $mode;
40+
private string $mode = 'create';
4141

4242
/**
4343
* Use express setup mode
4444
*
4545
* @var bool
4646
*/
47-
private $advanced;
47+
private bool $advanced = false;
4848

4949
/**
5050
* Path to the currently executed 'binary'
5151
*
52-
* @var null|string
52+
* @var string
5353
*/
54-
protected $executable;
54+
protected string $executable = '';
5555

5656
/**
5757
* Execute the configurator
@@ -180,6 +180,6 @@ private function ensureForce(): void
180180
*/
181181
private function getExecutable(): string
182182
{
183-
return $this->executable ?? 'vendor/bin/captainhook';
183+
return !empty($this->executable) ? $this->executable : 'vendor/bin/captainhook';
184184
}
185185
}

0 commit comments

Comments
 (0)