-
Notifications
You must be signed in to change notification settings - Fork 0
Open

Description
Using get_defined_functions, do not call a system-defined function is_callable()
if (is_callable($state)) {
$state = $state();
}
foreach ($state as $key => $value) {
if (is_callable($value)) { // <----- CHECK IF SYSTEM DEFINED FUNCTION
$state[$key] = $value();
}
}
We also need to account for laravel functions (this list is not exhaustive)
Metadata
Metadata
Assignees
Labels
No labels