Skip to content

Commit 00d19f1

Browse files
committed
Modified some value types.
1 parent 1b96050 commit 00d19f1

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/Supporting/CommunicationProvider.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,13 +239,13 @@ public function __construct(string $solution,
239239
if (!is_null($host)) {
240240
if ($host == "localserver") {
241241
$this->host = "127.0.0.1";
242-
$this->port = "3000";
242+
$this->port = 3000;
243243
$this->isLocalServer = true;
244244
$this->protocol = "http";
245245
} else {
246246
$this->host = $host;
247247
if (!is_null($port)) {
248-
$this->port = $port;
248+
$this->port = intval($port);
249249
}
250250
if (!is_null($protocol)) {
251251
$this->protocol = $protocol;
@@ -272,7 +272,7 @@ public function getURL(array $params,
272272
string|null|false $directPath = null): string
273273
{
274274
$vStr = $this->vNum < 1 ? 'Latest' : strval($this->vNum);
275-
$url = "$this->protocol://$this->host:$this->port";
275+
$url = "$this->protocol://$this->host:" . strval($this->port);
276276
if (!empty($directPath)) {
277277
$url .= $directPath;
278278
} else {

src/Supporting/FileMakerLayout.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -554,10 +554,10 @@ public function getDebugInfo(): string
554554

555555
/**
556556
* Get the script error code.
557-
* @return int|null The value of the error code.
557+
* @return string|null The value of the error code.
558558
* If any script wasn't called, it returns null.
559559
*/
560-
public function getScriptError(): int|null
560+
public function getScriptError(): string|null
561561
{
562562
return $this->restAPI->scriptError;
563563
}
@@ -574,10 +574,10 @@ public function getScriptResult(): string|null
574574

575575
/**
576576
* Get the prerequest script error code.
577-
* @return int|null The value of the error code.
577+
* @return string|null The value of the error code.
578578
* If any script wasn't called, it returns null.
579579
*/
580-
public function getScriptErrorPrerequest(): int|null
580+
public function getScriptErrorPrerequest(): string|null
581581
{
582582
return $this->restAPI->scriptErrorPrerequest;
583583
}
@@ -594,10 +594,10 @@ public function getScriptResultPrerequest(): string|null
594594

595595
/**
596596
* Get the presort script error code.
597-
* @return int|null The value of the error code.
597+
* @return string|null The value of the error code.
598598
* If any script wasn't called, it returns null.
599599
*/
600-
public function getScriptErrorPresort(): int|null
600+
public function getScriptErrorPresort(): string|null
601601
{
602602
return $this->restAPI->scriptErrorPresort;
603603
}

0 commit comments

Comments
 (0)