Zend 1.12 foreach in PHP 7

We migrated our system with Zend Framework 1.11.9 to PHP 7. Making several adjustments between them updating Zend Framework 1.12.12 we manage to make it work.

However there is a problem with the following message “Warning: Invalid argument supplied for foreach ()” in the code the fragment is

foreach ($this->list as $value){
$record->setAttribute(‘id’, $value[‘id’]);

$recordList->append($record);
}

In a call from a system view this fragment works.Where the warning does not return values in the loop, it is an implementation within a partials directory. That is, a view that has additional code for the user.
Does someone have a similar problem?

Zendframework 1.x is EOL’d and no longer supported: please plan an upgrade instead.