Skip to content

Commit

Permalink
compatibility with nette/component-model
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Mar 20, 2018
1 parent 1f1b97b commit b80992e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
],
"require": {
"php": ">=7.1",
"nette/component-model": "^3.0",
"nette/component-model": "^3.0.0-beta2",
"nette/http": "^2.3.8 || ~3.0.0",
"nette/utils": "^3.0-beta2"
},
Expand Down
4 changes: 1 addition & 3 deletions src/Forms/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,10 @@ public function getCurrentGroup(): ?ControlGroup

/**
* Adds the specified component to the IContainer.
* @param string|int $name
* @param string|int $insertBefore
* @return static
* @throws Nette\InvalidStateException
*/
public function addComponent(Nette\ComponentModel\IComponent $component, $name, $insertBefore = null)
public function addComponent(Nette\ComponentModel\IComponent $component, ?string $name, string $insertBefore = null)
{
parent::addComponent($component, $name, $insertBefore);
if ($this->currentGroup !== null) {
Expand Down

0 comments on commit b80992e

Please sign in to comment.