Skip to content

Commit 8fede17

Browse files
committed
Fix PHPStan complaining about accessing protected currentGroup property
PHPStan 2.1.8 started to complain about `property.protected`: Access to protected property Nette\Forms\Container::$currentGroup. See phpstan/phpstan#13123 Fortunately, Nette provides a public method we can use instead.
1 parent 853e7c8 commit 8fede17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Multiplier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ protected function getHtmlName(): array
418418
protected function createContainer(): Container
419419
{
420420
$control = new Container();
421-
$control->currentGroup = $this->currentGroup;
421+
$control->setCurrentGroup($this->currentGroup);
422422
$this->fillContainer($control);
423423

424424
return $control;

0 commit comments

Comments
 (0)