Skip to content

Commit

Permalink
改进set方法
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Nov 23, 2024
1 parent 79d7cb2 commit a8cb92f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -913,6 +913,7 @@ public function set(string $name, $value): void
} else {
$this->setData('data', $name, $value);
}
$this->setData('get', $name, null);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ public function setSuffix(string $suffix)
*/
public function getSuffix(): string
{
return $this->suffix ?: '';
return $this->suffix ?? '';
}

/**
Expand Down

0 comments on commit a8cb92f

Please sign in to comment.