Closed Gappa closed 1 year ago
I can't replicate the bug. I would rather say that it is caused by some parameter added to $this->template
.
Doh, you're right, I fiddled with it so much that I mucked up the test case.
So, the correct steps:
final class HomePresenter extends Nette\Application\UI\Presenter
{
public function actionDefault(): void
{
$this->template->foo = new \ArrayIterator(['a', 'b', 'c']);
}
}
But it should fail in any presenter, I just wanted to make it as clean as possible.
The DIC panel also fails (It's disabled in my project) on the same error.
Yeah, there's a bug. And I added a test specifically for ArrayIterator, but it didn't catch that.
Fixed.
Thanks :)
Version: 2.10.1
Bug Description
Steps To Reproduce
In a latte template:
Expected Behavior
No error is shown in the Tracy bar. Previous versions did not have this problem.
Possible Solution
Retyping the
$k
parameter tostring
:As it is already done here: