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

Element parsing error, for cfargument, "#["text"]#" #684

Open
Vintic opened this issue May 14, 2020 · 0 comments
Open

Element parsing error, for cfargument, "#["text"]#" #684

Vintic opened this issue May 14, 2020 · 0 comments

Comments

@Vintic
Copy link

Vintic commented May 14, 2020

Second cfargument wont be passed to element(final Element element, final Context context, final BugList bugs) function, because of default="#["xx"]#"

<cfcomponent displayname="t" hint="z">

    <cffunction name = "test" access = "Public">
             <cfargument name = "1" type = "array" required = "false" default=#["zz.id"]# />
             <cfargument name = "2" type = "array" required = "false" default="#["xx"]#" />
             <cfargument name = "3" type = "struct" required = "false" default="#{}#" />
             <cfargument name = "4" type="string" required="false" default="" />

        <cfreturn 1 />
     </cffunction>
</cfcomponent>

Can be tested with rule ARG_HINT_MISSING

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant