[NFR]: "->" Notation for Objects in Volt
Author: kgrammerCreated Aug 1, 2026Updated Aug 1, 2026
Labelsnew feature request7.0
Would it be possible to support -> for object property access in Volt, either as an alternative to . or as the preferred syntax?
PHP developers are already accustomed to using -> for object properties, while Volt currently uses .. Arrays already use the familiar PHP syntax (['key']), so allowing -> for objects would make the transition between PHP and Volt more intuitive and reduce the mental context switch when moving between templates and PHP code.
I realize this would be a language-level change and may have backward compatibility considerations, but I think it would improve consistency with standard PHP syntax and make Volt feel more natural to PHP developers.
Source: phalcon/cphalcon