Skip to content

Commit 3159933

Browse files
author
Marcel Corso
committed
new lookup endpoints: non-null first param of read() fails because it can be null on the parent method
1 parent 129cff8 commit 3159933

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/MessageBird/Resources/Lookup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function __construct(Common\HttpClient $HttpClient)
3434
* @throws \MessageBird\Exceptions\RequestException
3535
* @throws \MessageBird\Exceptions\ServerException
3636
*/
37-
public function read($phoneNumber, $countryCode = null)
37+
public function read($phoneNumber = null, $countryCode = null)
3838
{
3939
if(empty($phoneNumber)) {
4040
throw new InvalidArgumentException('The phone number cannot be empty.');

src/MessageBird/Resources/LookupHLR.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function create($hlr, $countryCode = null)
5858
* @throws \MessageBird\Exceptions\RequestException
5959
* @throws \MessageBird\Exceptions\ServerException
6060
*/
61-
public function read($phoneNumber, $countryCode = null)
61+
public function read($phoneNumber = null, $countryCode = null)
6262
{
6363
if(empty($phoneNumber)) {
6464
throw new InvalidArgumentException('The phone number cannot be empty.');

0 commit comments

Comments
 (0)