PHP Fatal error: Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, array given in C:\Users\user\Local Sites\radiatetailwind\app\public\wp-content\themes\radiate-tailwind\vendor\radiate\framework\src\Http\JsonResponse.php:68
To Reproduce
Steps to reproduce the behavior:
Go to the appearance/menu screen
Add a post/page
There is no response. Console shows errors in admin-ajax.php call
Error logs show more details (above)
Expected behaviormethod_exists to accept correct parameter types
Additional context
In JsonResponse::setData method, check if data is an array before the method_exists call.
Describe the bug
To Reproduce Steps to reproduce the behavior:
Expected behavior
method_exists
to accept correct parameter typesAdditional context In
JsonResponse::setData
method, check if data is an array before themethod_exists
call.