Skip to content

Commit

Permalink
fix: Creation of dynamic property is deprecated (#102)
Browse files Browse the repository at this point in the history
Co-authored-by: Luffy <[email protected]>
  • Loading branch information
zoujingli and sy-records authored Aug 24, 2024
1 parent d08f6b9 commit 6285474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Message/AbstractMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function __construct(array $data = [])
$methodName = 'set' . ucfirst($k);
if (method_exists($this, $methodName)) {
$this->{$methodName}($v);
} else {
} elseif (isset($this->{$k})) {
$this->{$k} = $v;
}
}
Expand Down

0 comments on commit 6285474

Please sign in to comment.