array.find - can't cast closure to string

Description

repro:

stacktrace

boxlang 62862b2c6a048397a15d7d86ed243a972f59a917
boxlang miniserver d65fa65b530a63a4dd11bc4b3c2ef1d76bbec3a7

Activity

Show:

Brad Wood October 11, 2024 at 7:01 PM

Ahh, arrayFind. That makes more sense then. I just saw find() in the ticket description and thought it was for the find() BIF.

David Rogers October 11, 2024 at 5:53 PM
Edited

hm, “find” vs “arrayFind” … this was for “arrayFind”.
array.find docs


acf and lucee both accept a callback here.

Brad Wood October 11, 2024 at 5:50 PM

Well, this was reported as a “bug” not a “feature request” so I was trying to figure out by what standard it was a “bug”. Did Lucee secretly add this and just not update their docs or something?

Luis Majano October 11, 2024 at 4:55 PM

We do now

 

Brad Wood October 11, 2024 at 3:51 PM

Adobe and Lucee both only allow a string here, not a closure per their docs

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Fix versions

Priority

Sentry

Created October 11, 2024 at 11:56 AM
Updated October 11, 2024 at 7:01 PM
Resolved October 11, 2024 at 3:14 PM