Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.

Commit c7c261e

Browse files
committed
🚿
1 parent 58e8ad5 commit c7c261e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/provider-example-common.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
namespace chillerlan\OAuthExamples;
1212

1313
use chillerlan\DotEnv\DotEnv;
14+
use chillerlan\HTTP\HTTPOptionsTrait;
1415
use chillerlan\HTTP\Psr18\CurlClient;
1516
use chillerlan\OAuth\OAuthOptions;
1617
use chillerlan\OAuth\Storage\SessionStorage;
@@ -62,7 +63,7 @@
6263
* @var \Psr\Http\Client\ClientInterface $http
6364
* @var \chillerlan\OAuth\Storage\OAuthStorageInterface $storage
6465
*/
65-
$options = $options ?? new OAuthOptions($options_arr);
66+
$options = $options ?? new class($options_arr) extends OAuthOptions{ use HTTPOptionsTrait; };
6667
$logger = new NullLogger;
6768
$http = new CurlClient($options);
6869
$storage = new SessionStorage($options);

0 commit comments

Comments
 (0)