Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5222889

Browse files
committed
changed visibility of setToken and updated test
1 parent 939c248 commit 5222889

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

‎src/Notion.php‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,8 @@ public function v1(): Notion
107107
*
108108
* @param string $token
109109
* @return Notion
110-
* @deprecated for public usage; will be set to private in 0.4.0!
111110
*/
112-
public function setToken(string $token): Notion
111+
private function setToken(string $token): Notion
113112
{
114113
$this->token = $token;
115114
return $this;

‎tests/NotionTest.php‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ class NotionTest extends NotionApiTest
1313
public function it_returns_notion_instance_with_set_token_and_connection()
1414
{
1515
$notion = new Notion('secret_*');
16-
$notion->v1()->setToken('secret_*');
1716

1817
$this->assertInstanceOf(Notion::class, $notion);
1918
$this->assertNotEmpty($notion->getConnection());

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /