Skip to content

Scalar objects(PHP 7) does not support string interpolation?  #29

@HallofFamer

Description

@HallofFamer

It seems that in the PHP 7 version for Scalar Objects, it is now possible to do something like "str"->toUpper(). It is very nice, but I find that string interpolation wont work. So the code below will fail:

$filepath = "{$path}/{$class}.php"->toLower();

Is this the expected behavior, or is it a glitch? Just wondering.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions