Skip to content

Commit

Permalink
Add type definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianfeldmann committed Feb 11, 2025
1 parent 32a392f commit 78b36e2
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
12 changes: 6 additions & 6 deletions src/Command/Add/AddFiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,42 +28,42 @@ class AddFiles extends Base
*
* @var string
*/
private $dryRun = '';
private string $dryRun = '';

/**
* Update.
*
* @var string
*/
private $update = '';
private string $update = '';

/**
* All.
*
* @var string
*/
private $all = '';
private string $all = '';

/**
* No all.
*
* @var string
*/
private $noAll = '';
private string $noAll = '';

/**
* Intent to add.
*
* @var string
*/
private $intentToAdd = '';
private string $intentToAdd = '';

/**
* Files to add content from to the index.
*
* @var string[]
*/
private $files = [];
private array $files = [];

/**
* Set dry run.
Expand Down
8 changes: 4 additions & 4 deletions src/Command/Apply/ApplyPatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,28 +28,28 @@ class ApplyPatch extends Base
*
* @var string[]
*/
private $patchFiles = [];
private array $patchFiles = [];

/**
* Action to take when encountering whitespace.
*
* @var string
*/
private $whitespace = ' --whitespace=\'warn\'';
private string $whitespace = ' --whitespace=\'warn\'';

/**
* Number of leading path components to remove from the diff paths.
*
* @var string
*/
private $pathComponents = ' -p1';
private string $pathComponents = ' -p1';

/**
* Ignore changes in whitespace in context lines.
*
* @var string
*/
private $ignoreSpaceChange = '';
private string $ignoreSpaceChange = '';

/**
* Patch files to apply.
Expand Down
4 changes: 2 additions & 2 deletions src/Command/Checkout/RestoreWorkingTree.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ class RestoreWorkingTree extends Base
*
* @var array<string>
*/
private $files = ['.'];
private array $files = ['.'];

/**
* Skip the checkout hooks?
*
* @var bool
*/
private $noMoreHooks = false;
private bool $noMoreHooks = false;

/**
* Do not trigger git hooks while restoring
Expand Down
6 changes: 3 additions & 3 deletions src/Command/CloneCmd/CloneCmd.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ final class CloneCmd extends Base
/**
* @var Url
*/
private $url;
private Url $url;

/**
* @var string
*/
private $dir = '';
private string $dir = '';

/**
* @var string
*/
private $depth = '';
private string $depth = '';

public function __construct(Url $url)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Command/Config/Get.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Get extends Base
*
* @var string
*/
private $name;
private string $name;

/**
* The name of the configuration key to get.
Expand Down

0 comments on commit 78b36e2

Please sign in to comment.