Skip to content

Commit fc77854

Browse files
committed
removed deprecated stuff
1 parent 9a2d6a8 commit fc77854

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

src/PhpGenerator/Parameter.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,6 @@ public function getTypeHint(): ?string
7373
}
7474

7575

76-
/**
77-
* @deprecated just use setDefaultValue()
78-
*/
79-
public function setOptional(bool $state = true): static
80-
{
81-
trigger_error(__METHOD__ . '() is deprecated, use setDefaultValue()', E_USER_DEPRECATED);
82-
$this->hasDefaultValue = $state;
83-
return $this;
84-
}
85-
86-
8776
public function setNullable(bool $state = true): static
8877
{
8978
$this->nullable = $state;

src/PhpGenerator/Traits/FunctionLike.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,4 @@ public function getReturnNullable(): bool
157157
{
158158
return $this->returnNullable;
159159
}
160-
161-
162-
/** @deprecated */
163-
public function setNamespace(?Nette\PhpGenerator\PhpNamespace $val = null): static
164-
{
165-
trigger_error(__METHOD__ . '() is deprecated', E_USER_DEPRECATED);
166-
return $this;
167-
}
168160
}

0 commit comments

Comments
 (0)