You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attribute class Nette\Application\Attributes\Persistent does not have a constructor and must be instantiated without any parameters.
Attributte Nette\Application\Attributes\Persistent indeed does not have a constructor.
Expected Behavior
No error
Possible Solution
Add constructor to Nette\Application\Attributes\Persistent that saves components names
public $names;
public function __construct(...$names)
{
$this->names = $names;
}
Should I prepare PR?
The text was updated successfully, but these errors were encountered:
MartinMystikJonas
changed the title
PErsistent attribute used for persistent controls does not allow params with control names
Persistent attribute used for persistent controls does not allow params with control names
Jul 16, 2022
dg
added a commit
that referenced
this issue
Jan 17, 2023
Version: 3.1.7
Bug Description
When we use attributte for persistent component
PHPStan complains
Attributte
Nette\Application\Attributes\Persistent
indeed does not have a constructor.Expected Behavior
No error
Possible Solution
Add constructor to
Nette\Application\Attributes\Persistent
that saves components namesShould I prepare PR?
The text was updated successfully, but these errors were encountered: