File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -159,11 +159,10 @@ final public function getParent(): ?IContainer
159159 /**
160160 * Sets or removes the parent of this component. This method is managed by containers and should
161161 * not be called by applications
162- * @return static
163162 * @throws Nette\InvalidStateException
164163 * @internal
165164 */
166- public function setParent (?IContainer $ parent , ?string $ name = null )
165+ public function setParent (?IContainer $ parent , ?string $ name = null ): static
167166 {
168167 if ($ parent === null && $ this ->parent === null && $ name !== null ) {
169168 $ this ->name = $ name ; // just rename
Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ function getParent(): ?IContainer;
3030
3131 /**
3232 * Sets the parent of this component.
33- * @return static
3433 */
35- function setParent (?IContainer $ parent , ?string $ name = null );
34+ function setParent (?IContainer $ parent , ?string $ name = null ): static ;
3635}
You can’t perform that action at this time.
0 commit comments