By megachriz on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
7.x-2.x
Introduced in version:
7.x-2.0-beta5
Description:
The signature of the method FeedsProcessor::entityValidate() changed. It now has a second optional parameter.
If you extend the FeedsProcessor class and override the method entityValidate() you'll need update the signature: add , FeedsSource $source = NULL in the method's parameters section.
Otherwise you would get a PHP warning like the following:
Declaration of MyProcessor::entityValidate() should be compatible with FeedsProcessor::entityValidate($entity, FeedsSource $source = NULL)
If you were calling parent::entityValidate($entity); in your code, be sure to update that to parent::entityValidate($entity, $source);.
Before
protected function entityValidate($entity) {
parent::entityValidate($entity);
After
protected function entityValidate($entity, FeedsSource $source = NULL) {
parent::entityValidate($entity, $source);
See also the commit.
Impacts:
Module developers