Skip to content

Commit 0ccc86f

Browse files
authored
Not all PHP versions support multiple types of method return value.
1 parent cfe701d commit 0ccc86f

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
@@ -209,7 +209,7 @@ public function count(): int
209209
* @return FileMakerRelation|string|null
210210
* @ignore
211211
*/
212-
public function __get($key): FileMakerRelation|string|null
212+
public function __get($key): FileMakerRelation
213213
{
214214
return $this->field($key);
215215
}
@@ -367,7 +367,7 @@ public function getPortalNames(): array
367367
}
368368

369369
/**
370-
* The field value of the first parameter. Or the FileMakerRelation object associated with the the first paramenter.
370+
* The field value of the first parameter. Or the FileMakerRelation object associated with the the first parameter.
371371
*
372372
* @param string $name The field or portal name.
373373
* The table occurrence name of the portal can be the portal name, and also the object name of the portal.
@@ -378,7 +378,7 @@ public function getPortalNames(): array
378378
* @see FMDataAPI::setFieldHTMLEncoding() Compatible mode for FileMaker API for PHP.
379379
*
380380
*/
381-
public function field($name, $toName = null): string|FileMakerRelation
381+
public function field($name, $toName = null)
382382
{
383383
$toName = is_null($toName) ? "" : "{$toName}::";
384384
$fieldName = "{$toName}$name";

0 commit comments

Comments
 (0)