Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Referencing native php classes within namespace without define global namespace #1000

Closed
digiwirtual opened this issue Apr 19, 2024 · 0 comments · Fixed by #1001
Closed

Referencing native php classes within namespace without define global namespace #1000

digiwirtual opened this issue Apr 19, 2024 · 0 comments · Fixed by #1001

Comments

@digiwirtual
Copy link

digiwirtual commented 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:
obrazek

Fixed code:
obrazek

@digiwirtual 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants