We're updating the issue view to help you get more done. 

ACF errors when mocking methods named "contains"

Description

Apparently there are issues when mocking a method named "contains" due to that being a reserved word in CFML.

These lines are a syntax error in ACF (assuming the function name is "contains".

1 2 <cfset this["contains"] = contains> <cfset variables["contains"] = contains>

The bottom line is redundant since the method already exists in the variables scope and the remaining line can be switched to this:

1 <cfset this["contains"] = variables["contains"]>

Status

Assignee

Luis Majano

Reporter

Brad Wood

Labels

None

Components

Fix versions

Priority

Major