Skip to content

Commit 1b0b52e

Browse files
committed
strict typing for addSetting
1 parent 7757eb5 commit 1b0b52e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Util/ClassSourceManipulator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ public function addGetter(string $propertyName, $returnType, bool $isReturnTypeN
249249
$this->addCustomGetter($propertyName, $methodName, $returnType, $isReturnTypeNullable, $commentLines);
250250
}
251251

252-
public function addSetter(string $propertyName, $type, bool $isNullable, array $commentLines = []): void
252+
public function addSetter(string $propertyName, string $type, bool $isNullable, array $commentLines = []): void
253253
{
254254
$builder = $this->createSetterNodeBuilder($propertyName, $type, $isNullable, $commentLines);
255255
$builder->addStmt(

0 commit comments

Comments
 (0)