Skip to content

craft\debug\RequestPanel::save modify actionParams key to prevent yii\debug\FlattenException when Yii::$app->requestedParams contains Closures #14982

Closed Answered by brandonkelly
Anubarak asked this question in Ideas
Discussion options

You must be logged in to vote

Thanks for pointing that out!

I’ve updated RequestPanel to start pre-serializing any objects within actionParams via VarDumper::dump(), so serialize() doesn’t potentially throw an error due to closures. (4484216)

The change was a little involved, so I made it for 4.10 and 5.2.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@brandonkelly
Comment options

Answer selected by brandonkelly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants