The expression return $entity; of type object|array is incompatible with the return type declared by the interface ScayTrase\Api\Cruds\Enti...Interface::updateEntity of type object as it can also be of type array which is not included in this return type.