Skip to content

[BUG]: Volt: dead closure prefix #17564

Open
Open

Description

@niden

The closure prefix generator cannot be used

Compiler::getUniquePrefix() has a branch that calls the prefix as a closure, but setUniquePrefix() takes a string in both projects, so the only way in is a subclass writing the protected property. cphalcon declares protected prefix (untyped) so that works; phalcon has since widened its property to match, but the setter still refuses a closure on both sides.

Decide whether the closure prefix is supported. If yes, widen setUniquePrefix() in both. If no, drop the branch from both.

Activity

  1. self-assigned this
    on Sep 4, 2026
  2. added theissue type on Sep 4, 2026
  3. moved this to Active Sprint in Phalcon v5on Sep 4, 2026
  4. added
    bug
    on Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

7.0bugstatus: medium

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions