Obrigado. Mas não resolveu. Aí resolvi voltar a fonte heheheh e achei a solução.
https://www.youtube.com/watch?v=j9QltW5IBNY&list=PLSYIyzca1f9wGynWlC-SH2lVBkE8S81A0&index=13&ab_channel=TJGWeb
private function getRequest()
{
$obj=new \stdClass;
$get=(object)$_GET;
$post=(object)$_POST;
$obj->get=$get;
$obj->post=$post;
return $obj;
}
Em teoria, o arroba (@) deveria ter ajudado, mas não ajudou. Mas esse código aí de cima deu certo.