Skip to content

Commit 9b927bb

Browse files
committed
Fix return type of *DocBlockHint() methods - Close #49
1 parent 8540209 commit 9b927bb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Builder/ClassMethodBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ public function setDocBlockComment(?string $docBlockComment): self
241241
return $this;
242242
}
243243

244-
public function getReturnTypeDocBlockHint(): string
244+
public function getReturnTypeDocBlockHint(): ?string
245245
{
246246
return $this->returnTypeDocBlockHint;
247247
}

src/Builder/ClassPropertyBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ public function setDocBlockComment(?string $docBlockComment): self
179179
return $this;
180180
}
181181

182-
public function getTypeDocBlockHint(): string
182+
public function getTypeDocBlockHint(): ?string
183183
{
184184
return $this->typeDocBlockHint;
185185
}

src/Builder/ParameterBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public function getName(): string
152152
return $this->name;
153153
}
154154

155-
public function getTypeDocBlockHint(): string
155+
public function getTypeDocBlockHint(): ?string
156156
{
157157
return $this->typeDocBlockHint;
158158
}

0 commit comments

Comments
 (0)