We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ada95e commit 8326fa0Copy full SHA for 8326fa0
src/PhpGenerator/Parameter.php
@@ -80,6 +80,7 @@ public function getTypeHint()
80
*/
81
public function setOptional(bool $state = true): self
82
{
83
+ trigger_error(__METHOD__ . '() is deprecated, use setDefaultValue()', E_USER_DEPRECATED);
84
$this->hasDefaultValue = $state;
85
return $this;
86
}
0 commit comments