Merge pull request #4398 from nextcloud/techdebt/noid/update-signature-of-markFieldUpdated

Update signature of Entity::markFieldUpdated
This commit is contained in:
Joas Schilling
2023-01-24 08:37:54 +01:00
committed by GitHub

View File

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