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
Bug: class ForeachRuntime has defined namespace Smarty\Runtime but inside referencing php classes without giving global namespace, so classes are not accesible and code all the time just jump to the end of count function: return count((array)$value);
Using total in foreach loop on objects doesnt work.
Your code:
Fixed code:
The text was updated successfully, but these errors were encountered:
digiwirtual
changed the title
Referencing native php functions within namespace without define global namespace
Referencing native php classes within namespace without define global namespace
Apr 19, 2024
Smarty 5.0.2
src/Runtime/ForeachRuntime.php
Author @wisskid
Bug: class ForeachRuntime has defined namespace Smarty\Runtime but inside referencing php classes without giving global namespace, so classes are not accesible and code all the time just jump to the end of count function: return count((array)$value);
Using
total
in foreach loop on objects doesnt work.Your code:
Fixed code:
The text was updated successfully, but these errors were encountered: