Skip to content

Commit

Permalink
🐛 Visibility of OpenStreetMap::$dev (#5)
Browse files Browse the repository at this point in the history
* 🐛 Visibility of OpenStreetMap::$dev

Changes the visibility of OpenStreetMap::$dev to `protected` in order to avoid a PHP error when using league/oauth2-client v2.6.0

* Add 'dev' option to README.md
  • Loading branch information
sgrossberndt authored Oct 18, 2021
1 parent 164e5dc commit 2b903fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ composer require jbelien/oauth2-OpenStreetMap
$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
'redirectUri' => 'yourRedirectUri', // The return URL you specified for your app on OpenStreetMap.org
'dev' => false // Whether to use the OpenStreetMap test environment at https://master.apis.dev.openstreetmap.org/
]);

// Get authorization code
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/OpenStreetMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class OpenStreetMap extends AbstractProvider
{
use BearerAuthorizationTrait;

private $dev = false;
protected $dev = false;

public function __construct(array $options = [], array $collaborators = [])
{
Expand Down

0 comments on commit 2b903fc

Please sign in to comment.