There's a discrepancy in config between our stagin...
# cfml-general
r
There's a discrepancy in config between our staging and prod Lucee, so
Copy code
<cfscript>
    local.array = [1,2,3]
    local.array.each((struct item, numeric rowNumber) => {
		dump(arguments.item);		
	});
</cfscript>
This errors with
Invalid call of the function [lambda_7o0h], first Argument [item] is of invalid type, Cannot cast Object type [Number] to a value of type [struct]
as expected but no error on our staging env. Anyone know what config controls this?
a
Might be a good question for the Lucee channel. There's a setting in CF to disable type-checking? Presume Lucee has same?
r
Thanks Adam, will have a look
z
could be possibly related cached classes, you try running https://docs.lucee.org/reference/functions/pagepoolclear.html once from within your application. mentioning which lucee versions you are using always helps provide more context to problems