Skip to content

Commit a01e6b5

Browse files
sylfabreGabrielAnca
authored andcommitted
Type hinting (#284)
1 parent b9215dd commit a01e6b5

15 files changed

+23
-23
lines changed

src/IntercomAdmins.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class IntercomAdmins
1818
*
1919
* @param IntercomClient $client
2020
*/
21-
public function __construct($client)
21+
public function __construct(IntercomClient $client)
2222
{
2323
$this->client = $client;
2424
}

src/IntercomBulk.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class IntercomBulk
1818
*
1919
* @param IntercomClient $client
2020
*/
21-
public function __construct($client)
21+
public function __construct(IntercomClient $client)
2222
{
2323
$this->client = $client;
2424
}

src/IntercomClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class IntercomClient
133133
* @param string|null $password Api Key.
134134
* @param array $extraRequestHeaders Extra request headers to be sent in every api request
135135
*/
136-
public function __construct($appIdOrToken, $password = null, $extraRequestHeaders = [])
136+
public function __construct(string $appIdOrToken, string $password = null, array $extraRequestHeaders = [])
137137
{
138138
$this->users = new IntercomUsers($this);
139139
$this->customers = new IntercomCustomers($this);

src/IntercomCompanies.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class IntercomCompanies
1818
*
1919
* @param IntercomClient $client
2020
*/
21-
public function __construct($client)
21+
public function __construct(IntercomClient $client)
2222
{
2323
$this->client = $client;
2424
}

src/IntercomConversations.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class IntercomConversations
1818
*
1919
* @param IntercomClient $client
2020
*/
21-
public function __construct($client)
21+
public function __construct(IntercomClient $client)
2222
{
2323
$this->client = $client;
2424
}

src/IntercomCounts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class IntercomCounts
1818
*
1919
* @param IntercomClient $client
2020
*/
21-
public function __construct($client)
21+
public function __construct(IntercomClient $client)
2222
{
2323
$this->client = $client;
2424
}

src/IntercomCustomers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class IntercomCustomers
1818
*
1919
* @param IntercomClient $client
2020
*/
21-
public function __construct($client)
21+
public function __construct(IntercomClient $client)
2222
{
2323
$this->client = $client;
2424
}

src/IntercomEvents.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class IntercomEvents
1818
*
1919
* @param IntercomClient $client
2020
*/
21-
public function __construct($client)
21+
public function __construct(IntercomClient $client)
2222
{
2323
$this->client = $client;
2424
}

src/IntercomLeads.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class IntercomLeads
1818
*
1919
* @param IntercomClient $client
2020
*/
21-
public function __construct($client)
21+
public function __construct(IntercomClient $client)
2222
{
2323
$this->client = $client;
2424
}

src/IntercomMessages.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class IntercomMessages
1818
*
1919
* @param IntercomClient $client
2020
*/
21-
public function __construct($client)
21+
public function __construct(IntercomClient $client)
2222
{
2323
$this->client = $client;
2424
}

0 commit comments

Comments
 (0)