Skip to content

Commit 0d2bc84

Browse files
committed
Fix undefined property error
1 parent d53d946 commit 0d2bc84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Info.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function __get($key)
2323
return Mutator::fetchInfo($this->{$key});
2424
}
2525

26-
return $this->{$key} ?? $this->item->{$key};
26+
return property_exists($this, $key) ? $this->{$key} : $this->item->{$key};
2727
}
2828

2929
public function __set($key, $value)

0 commit comments

Comments
 (0)