Skip to content

Commit 01d257b

Browse files
committed
Fix conflict
2 parents d666b69 + 1b2da00 commit 01d257b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/IntercomCustomers.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ public function __construct($client)
2424
}
2525

2626
/**
27-
* Saerch Customers
27+
* Search Customers
2828
*
2929
* @see https://developers.intercom.com/intercom-api-reference/v0/reference#customers
3030
* @param array query
3131
* @return stdClass
3232
* @throws Exception
3333
*/
34-
public function searchCustomers($query)
34+
public function search($query)
3535
{
3636
return $this->client->post('customers/search', $query);
3737
}

test/IntercomCustomersTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Intercom\Test;
44

5-
use Intercom\IntercomUsers;
5+
use Intercom\IntercomCustomers;
66
use PHPUnit\Framework\TestCase;
77

88
class IntercomCustomersTest extends TestCase
@@ -13,6 +13,6 @@ public function testCustomerSearch()
1313
$stub->method('post')->willReturn('foo');
1414

1515
$customers = new IntercomCustomers($stub);
16-
$this->assertEquals('foo', $customers->search(["query": []]));
16+
$this->assertEquals('foo', $customers->search(["query" => []]));
1717
}
1818
}

0 commit comments

Comments
 (0)