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
Well, Smarty is not PHP. Although the syntax is clearly inspired by PHP, their syntaxes differ greatly. Thus, I would not consider this a bug, but it might be considered as a new feature.
And in smarty requiremts:
Requirements: Smarty can be run with PHP 7.1 to PHP 8.2.
however it is not fully compatible with few new features like Named Arguments which should be mention in the docs.
I still didn't try this with twig but tried with Nette/Latte template which works perfectly fine:
Again, Smarty is not PHP. The fact that Smarty can be run with PHP 7.1 to PHP 8.2 does not mean that the Syntax of Smarty is equal to the syntax of PHP. It is not, in many respects. There are some PHP language constructs that also work in Smarty and vice versa, but the similarities are in fact very limited.
Support for named arguments was suggested in #864 and is still open for consideration.
In sequence of issue #888
this is not possible with smarty:
i am using php 8.0 feature called Named Arguments, in this case
hidden
name parameter and give me this error:Even that @wisskid said in #888 :
And in smarty requiremts:
however it is not fully compatible with few new features like Named Arguments which should be mention in the docs.
I still didn't try this with twig but tried with
Nette/Latte
template which works perfectly fine:you can see my full code here
The text was updated successfully, but these errors were encountered: