Closed ScottHuangZL closed 3 years ago
@kartik-v Add catch error to avoid 'Closure object cannot have properties' issue
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.
any news? i have some problem, please merge this PR
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.