Skip to content

Remove a TODO that no longer applies in php 8.0 #369

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 18, 2022

Conversation

TysonAndre
Copy link
Contributor

@TysonAndre TysonAndre commented Aug 10, 2022

Any expression can be used as of 8.0 without an unexpected syntax error.

In encapsulated strings,
"${a->prop}" is equivalent to "{${(a->prop)}}" in php 8.0 and a
syntax error in previous php versions.

(Get the property prop of the global constant a (constants can be
objects in php 8.1), then get the variable with the name equal to that
string)

Related to #230

Any expression can be used as of 8.0 without an unexpected syntax error.

In encapsulated strings,
`"${a->prop}"` is equivalent to `"{${(a->prop)}}"` in php 8.0 and a
syntax error in previous php versions.

(Get the property `prop` of the global constant `a` (constants can be
objects in php 8.1), then get the variable with the name equal to that
string)
@roblourens roblourens merged commit a2f34af into microsoft:main Aug 18, 2022
@TysonAndre TysonAndre deleted the remove-todo-230 branch August 19, 2022 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants