Issue #3169515: Warning: Declaration of entityValidate($entity) should be compatible with FeedsProcessor::entityValidate($entity, ?FeedsSource $source = NULL)

This commit is contained in:
Michael Stenta 2020-09-07 10:35:34 -04:00
parent 7528350717
commit da504a1be7
1 changed files with 2 additions and 2 deletions

View File

@ -108,8 +108,8 @@ class FarmAssetProcessor extends FeedsProcessor {
/**
* Validates a farm asset.
*/
protected function entityValidate($entity) {
parent::entityValidate($entity);
protected function entityValidate($entity, FeedsSource $source = NULL) {
parent::entityValidate($entity, $source);
if (!isset($entity->uid) || !is_numeric($entity->uid)) {
$entity->uid = $this->config['author'];