Update signature of Entity::markFieldUpdated

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling
2023-01-23 11:11:41 +01:00
parent 79dac0c1e2
commit 96e9571ae4

View File

@@ -53,7 +53,7 @@ class RelationalEntity extends Entity implements \JsonSerializable {
* @param string $attribute the name of the attribute * @param string $attribute the name of the attribute
* @since 7.0.0 * @since 7.0.0
*/ */
protected function markFieldUpdated($attribute) { protected function markFieldUpdated(string $attribute): void {
if (!in_array($attribute, $this->_relations, true)) { if (!in_array($attribute, $this->_relations, true)) {
parent::markFieldUpdated($attribute); parent::markFieldUpdated($attribute);
} }