Skip to content

Commit 74c2294

Browse files
authored
Some methods can return null instead of int.
1 parent 35e1824 commit 74c2294

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Supporting/FileMakerRelation.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function getTargetTable(): string
110110
*
111111
* @return int The total record count.
112112
*/
113-
public function getTotalCount(): int
113+
public function getTotalCount(): ?int
114114
{
115115
return ($this->dataInfo && property_exists($this->dataInfo, 'totalRecordCount')) ?
116116
$this->dataInfo->totalRecordCount : null;
@@ -122,7 +122,7 @@ public function getTotalCount(): int
122122
*
123123
* @return int The founded record count.
124124
*/
125-
public function getFoundCount(): int
125+
public function getFoundCount(): ?int
126126
{
127127
return ($this->dataInfo) ? $this->dataInfo->foundCount : null;
128128
}
@@ -133,7 +133,7 @@ public function getFoundCount(): int
133133
*
134134
* @return int The returned record count.
135135
*/
136-
public function getReturnedCount(): int
136+
public function getReturnedCount(): ?int
137137
{
138138
return ($this->dataInfo) ? $this->dataInfo->returnedCount : null;
139139
}

0 commit comments

Comments
 (0)