Update elgg_query_runner() to support closures
|Reported by:||janlb||Owned by:||janlb|
Description (last modified by ewinslow)
While closures generally work throughout Elgg, there are some cases where their usage could cause potential problems.
Some elgg functions take a callback parameter, but they expect this parameter to be of type string.
Functions such as get_data will work if a closure is passed instead of a string, however it will also raise a PHP Notice when attempting to cast the closure to a string (and in turn generate an inaccurate "cache key")
Change History (5)
comment:1 Changed 18 months ago by cash
- Summary changed from More thorough PHP closure support to Update elgg_query_runner() to support closures
comment:4 Changed 13 months ago by ewinslow
- Description modified (diff)
- Milestone changed from Needs Review to Elgg 1.9.0