Skip to content

Cannot watch template variables if Form has notEmpty() rules #567

Open

Description

This is a (multiple allowed):

  • bug

  • enhancement

  • feature-discussion (RFC)

  • CakePHP Version: 3.5.8

  • DebugKit Version: 3.11.3

What you did

Use modelless Form with notEmpty() rule, assign it to template variables, and click the Variables tab of the DebugKit.

What happened

Get Serialization of 'Closure' is not allowed error.

What you expected to happen

Template variables can be watched.

Why this issue happened

notEmpty() uses Closures internally and ToolbarService calls serialize() here.

(Reported by powder_mikan in #japanese cannel on Slack)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions