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
I just tried to upgrade from 3.1.31 to 3.1.33 and every place I use the @last property inside a foreach iteration on an object is broken with the following error:
Undefined property: Smarty_Variable::$last
After downgrading to 3.1.31 everything works fine.
The text was updated successfully, but these errors were encountered:
Cannot reproduce this in any recent version (including 3.1.31) with:
<?php
require_once './vendor/autoload.php';
$smarty = new Smarty();
class B {
public $a = 1;
public $b = 2;
}
$smarty->assign('test', new B());
$smarty->display('string:
{foreach $test as $key => $val}
{$key}: {$val}
{if $val@last}last{/if}
{/foreach}
');
I just tried to upgrade from 3.1.31 to 3.1.33 and every place I use the @last property inside a foreach iteration on an object is broken with the following error:
Undefined property: Smarty_Variable::$last
After downgrading to 3.1.31 everything works fine.
The text was updated successfully, but these errors were encountered: