Skip to content

Commit 5175cff

Browse files
cwmillerDaniel Tolbert
authored andcommitted
The fullCheck parameter for the lnpchecker is case-sensitive. Any value passed to the Account::lnpChecker's $fullcheck argument was being ignored by the server. (#17)
1 parent 118543a commit 5175cff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Account.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public function lnpChecker($array, $fullcheck = false) {
194194
$data = ["TnList" => ["Tn" => $array ]];
195195
$obj = new \Iris\NumberPortabilityRequest($data);
196196
if($fullcheck !== false && in_array($fullcheck, ["true", "false", "onnetportability", "offnetportability"])) {
197-
$f = "?fullcheck=$fullcheck";
197+
$f = "?fullCheck=$fullcheck";
198198
} else {
199199
$f = "";
200200
}

tests/AccountTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public function testlnpChecker() {
141141
$this->assertEquals($json, json_encode($res->to_array()));
142142

143143
$this->assertEquals("POST", self::$container[self::$index]['request']->getMethod());
144-
$this->assertEquals("https://api.test.inetwork.com/v1.0/accounts/9500249/lnpchecker?fullcheck=true", self::$container[self::$index]['request']->getUri());
144+
$this->assertEquals("https://api.test.inetwork.com/v1.0/accounts/9500249/lnpchecker?fullCheck=true", self::$container[self::$index]['request']->getUri());
145145
self::$index++;
146146
}
147147
public function testNpaGet() {

0 commit comments

Comments
 (0)