kartik-v / yii2-export

A library to export server/db data in various formats (e.g. excel, html, pdf, csv etc.)
http://demos.krajee.com/export
Other
165 stars 126 forks source link

Add catch error to avoid 'Closure object cannot have properties' issue #338

Closed ScottHuangZL closed 3 years ago

ScottHuangZL commented 3 years ago

My PHP still at v7.04 And Yii2 is upgrade to latest version: 2.0.38 several days ago.

In new Yii2 version, Dynagrid export full data function encounter 'Closure object cannot have properties' error, so add guard to protect/resolve issue.

//20201026 Scott: To avoid 'Closure object cannot have properties' error try { $format = ArrayHelper::getValue($column->contentOptions, 'cellFormat', null); } catch (\Error $e) { $format = null; }

Scope

This pull request includes a

Changes

The following changes were made (this change is also documented in the change log):

-

-

Related Issues

If this is related to an existing ticket, include a link to it as well.

ScottHuangZL commented 3 years ago

@kartik-v Add catch error to avoid 'Closure object cannot have properties' issue

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

theonedemon commented 3 years ago

any news? i have some problem, please merge this PR