Skip to content

Commit 5630548

Browse files
committed
Resolve the "Cannot access property" error detected by PHPStan
1 parent 300f594 commit 5630548

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)