PHPStan returns: ITemplate::render() invoked with 1 parameter, 0 required
- medhi
- Bronze Partner | 211
What am I doing wrong, when PHPStan returns error:
Method Nette\Application\UI\ITemplate::render() invoked with 1 parameter, 0 required.
But I only follow the documentation about Components: https://doc.nette.org/…0/components#…
In other words, render()
method must contain a parameter with the
template path.
- David Grudl
- Nette Core | 7348
You're not doing anything wrong, only Phpstan is too strict on this old design.