Skip to content

Commit 7c425a0

Browse files
authored
Merge pull request msyk#136 from matsuo/resolve-the-error-detected-by-phpstan
Resolve the "Cannot access property" error detected by PHPStan
2 parents 300f594 + 5630548 commit 7c425a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Supporting/FileMakerRelation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ public function getPortalNames(): array
360360
}
361361
break;
362362
case 'RECORD':
363-
if (property_exists($this->data, 'portalData')) {
363+
if (property_exists($this->data, 'portalData') && isset($this->data->portalData)) {
364364
foreach ($this->data->portalData as $name => $val) {
365365
$list[] = $name;
366366
}

0 commit comments

Comments
 (0)