Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 28f8186

Browse files
committed
Use setDefault internally
1 parent d15b9c3 commit 28f8186

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Generator/PropertyGenerator.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,6 @@ public function generate()
238238
*/
239239
public function omitDefaultValue()
240240
{
241-
$this->defaultValue = new PropertyValueGenerator(null, PropertyValueGenerator::OMIT);
242-
243-
return $this;
241+
return $this->setDefaultValue(null, PropertyValueGenerator::OMIT);
244242
}
245243
}

0 commit comments

Comments
 (0)