Skip to content

Commit b426884

Browse files
Fix property access issue
1 parent 51b1cad commit b426884

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/Command/Diff/Compare/FullDiffList.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -104,30 +104,30 @@ class FullDiffList implements OutputFormatter
104104
/**
105105
* The currently processed file
106106
*
107-
* @var \SebastianFeldmann\Git\Diff\File
107+
* @var \SebastianFeldmann\Git\Diff\File|null
108108
*/
109-
private File $currentFile;
109+
private ?File $currentFile = null;
110110

111111
/**
112112
* The file name of the currently processed file
113113
*
114-
* @var string
114+
* @var string|null
115115
*/
116-
private string $currentFileName;
116+
private ?string $currentFileName = null;
117117

118118
/**
119119
* The change position of the currently processed file
120120
*
121-
* @var string
121+
* @var string|null
122122
*/
123-
private string $currentPosition;
123+
private ?string $currentPosition = null;
124124

125125
/**
126126
* The operation of the currently processed file
127127
*
128-
* @var string
128+
* @var string|null
129129
*/
130-
private string $currentOperation;
130+
private ?string $currentOperation = null;
131131

132132
/**
133133
* List of collected changes

0 commit comments

Comments
 (0)