Skip to content

Commit 98043a8

Browse files
authored
feat: support php 8.4 virtual properties when serializing models (#55691)
1 parent f010067 commit 98043a8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Illuminate/Queue/SerializesModels.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ public function __serialize()
3636
continue;
3737
}
3838

39+
if (method_exists($property, 'isVirtual') && $property->isVirtual()) {
40+
continue;
41+
}
42+
3943
$value = $this->getPropertyValue($property);
4044

4145
if ($property->hasDefaultValue() && $value === $property->getDefaultValue()) {

0 commit comments

Comments
 (0)