Hi!
I tried to use your provider, but setting the dev option does not work:
$OpenStreetMapProvider = new \JBelien\OAuth2\Client\Provider\OpenStreetMap([
'clientId' => 'yourId', // The client ID assigned to you by OpenStreetMap.org
'clientSecret' => 'yourSecret', // The client password assigned to you by OpenStreetMap.org
'redirectUri' => 'yourRedirectUri', // The return URL you specified for your app on OpenStreetMap.org
'dev' => true
]);
results in an error Cannot access private property JBelien\OAuth2\Client\Provider\OpenStreetMap::$dev using league/oauth2-client v2.6.0, in oauth2-client/src/Tool/GuardedPropertyTrait.php line 45 due to
foreach ($options as $option => $value) {
if (property_exists($this, $option) && !$this->isGuarded($option)) {
$this->{$option} = $value;
}
}
}
Changing the visibility for $dev from private to protected solves the issue:
Hi! I tried to use your provider, but setting the dev option does not work:
results in an error
Cannot access private property JBelien\OAuth2\Client\Provider\OpenStreetMap::$dev
usingleague/oauth2-client
v2.6.0, in oauth2-client/src/Tool/GuardedPropertyTrait.php line 45 due toChanging the visibility for $dev from private to protected solves the issue: