Closed sergioas closed 3 years ago
Ola, Instalei o SDK PHP com o composer, ao tentar autenticar:
$token = xxxxx; $key = yyyyyy; $moip = new Moip(new BasicAuth($token,$key), Moip::ENDPOINT_SANDBOX);
Esta dando o erro:
Declaration of Moip\Auth\BasicAuth::register(Requests_Hooks &$hooks) must be compatible with Requests_Auth::register(Requests_Hooks $hooks) in .../public_html/slim/vendor/moip/moip-sdk-php/src/Auth/BasicAuth.php on line 11
Por favor, alguem consegue me ajudar ?
O codigo baixado via composer, estava errado
Ola, Instalei o SDK PHP com o composer, ao tentar autenticar:
$token = xxxxx; $key = yyyyyy; $moip = new Moip(new BasicAuth($token,$key), Moip::ENDPOINT_SANDBOX);
Esta dando o erro:
Declaration of Moip\Auth\BasicAuth::register(Requests_Hooks &$hooks) must be compatible with Requests_Auth::register(Requests_Hooks $hooks) in .../public_html/slim/vendor/moip/moip-sdk-php/src/Auth/BasicAuth.php on line 11
Por favor, alguem consegue me ajudar ?