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 @@ -30,10 +30,9 @@ class Container extends Component implements IContainer
3030
3131 /**
3232 * Adds a child component to the container.
33- * @return static
3433 * @throws Nette\InvalidStateException
3534 */
36- public function addComponent (IComponent $ component , ?string $ name , ?string $ insertBefore = null )
35+ public function addComponent (IComponent $ component , ?string $ name , ?string $ insertBefore = null ): static
3736 {
3837 if ($ name === null ) {
3938 $ name = $ component ->getName ();
Original file line number Diff line number Diff line change @@ -19,9 +19,8 @@ interface IContainer extends IComponent
1919{
2020 /**
2121 * Adds the component to the container.
22- * @return static
2322 */
24- function addComponent (IComponent $ component , ?string $ name );
23+ function addComponent (IComponent $ component , ?string $ name ): static ;
2524
2625 /**
2726 * Removes the component from the container.
You can’t perform that action at this time.
0 commit comments