Skip to content

Commit aa72ec0

Browse files
authored
Fix PropertyTag::setPropertyName() deprecation warning
Signed-off-by: Serg Lifinsky <[email protected]>
1 parent 1793e78 commit aa72ec0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Generator/DocBlock/Tag/PropertyTag.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function getName()
3737
*/
3838
public function setPropertyName($propertyName)
3939
{
40-
$this->propertyName = ltrim($propertyName, '$');
40+
$this->propertyName = $propertyName ? ltrim($propertyName, '$') : null;
4141
return $this;
4242
}
4343

0 commit comments

Comments
 (0)