Archived
1
0
Fork 0

app/models/Data/Base.php: make hasChanged() compatible with base class.

This commit is contained in:
Henrik Hautakoski 2022-07-26 19:55:30 +02:00
parent 2a2cda0de4
commit d6aefc502b

View file

@ -18,7 +18,7 @@ class Base extends Model
* @param boolean $allFields
* @return bool
*/
public function hasChanged($fieldName = null, $allFields = false)
public function hasChanged($fieldName = null, bool $allFields = false) : bool
{
return $this->hasSnapshotData() === false
|| parent::hasChanged($fieldName, $allFields);