Skip to content

Conversation

@sergeyklay
Copy link
Contributor

The Github\HttpClient\HttpClient::$client declared dynamically

@sergeyklay
Copy link
Contributor Author

@cursedcoder

/**
* @var ClientInterface
*/
public $client;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be private variable

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. Check please code

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what code should I check? can you please elaborate?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cursedcoder For example lib/Github/Client.php:249 (current master branch):

$this->getHttpClient()->client->setBaseUrl($baseUrl . '/api/v3');

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Making it private would be breaking anyway since it was defaulting to public already?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems to me - yes

@cursedcoder cursedcoder merged commit 311cf10 into KnpLabs:master Jul 7, 2016
@sergeyklay sergeyklay deleted the patch-2 branch July 7, 2016 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants