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 declare an array which contains a label key. The value needs to be translated, so I call the trans method. When I run the extractor on my file, it complains that this id is not a string but a PHPParser_Node_Expr_MethodCall. In fact, it sees the label key as being part of a form definition.
Unable to extract translation id for form label from non-string values, but got "PHPParser_Node_Expr_MethodCall" in src/Alt/Bundle/BduBundle/Controller/MainController.php on line 104. Please refactor your code to pass a string, or add "/** @ignore */".
Well, I could change the name of my key, but if there is better solution.
The text was updated successfully, but these errors were encountered:
I declare an array which contains a
label
key. The value needs to be translated, so I call thetrans
method. When I run the extractor on my file, it complains that this id is not a string but aPHPParser_Node_Expr_MethodCall
. In fact, it sees thelabel
key as being part of a form definition.The error message reads:
Well, I could change the name of my key, but if there is better solution.
The text was updated successfully, but these errors were encountered: