Skip to content

Diffrent volt partial() in php 5.6/7.0 #12176

Closed
@FlexIDK

Description

Expected and Actual Behavior

In PHP 5.6

Volt:
partial("email/tag_open", {'type': 'p'}) - $type is local var
{{ type }} - not set
partial("email/tag_open", {}) - $type inside - not set

In PHP 7

Volt:
partial("email/tag_open", {'type': 'p'}) - $type is global var
{{ type }} - last state set
partial("email/tag_open", {}) - $type inside - last state set

Details

  • Phalcon version: 3.0.1
  • PHP Version: 5.6.24-0+deb8u1 / 7.0.10-1~dotdeb+8.1
  • Operating System: Debian 8.5
  • Installation type: Compiling from source

Refs

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions