From 5630548db8059e8ff14b670a7373b29ac0948016 Mon Sep 17 00:00:00 2001 From: Atsushi Matsuo Date: Wed, 24 Dec 2025 12:09:33 +0900 Subject: [PATCH] Resolve the "Cannot access property" error detected by PHPStan --- src/Supporting/FileMakerRelation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Supporting/FileMakerRelation.php b/src/Supporting/FileMakerRelation.php index db82a27..cd2ed7e 100644 --- a/src/Supporting/FileMakerRelation.php +++ b/src/Supporting/FileMakerRelation.php @@ -360,7 +360,7 @@ public function getPortalNames(): array } break; case 'RECORD': - if (property_exists($this->data, 'portalData')) { + if (property_exists($this->data, 'portalData') && isset($this->data->portalData)) { foreach ($this->data->portalData as $name => $val) { $list[] = $name; }