Skip to content

Conversation

@TysonAndre
Copy link
Owner

Run this alongside Travis CI

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)
@TysonAndre TysonAndre merged commit 1261275 into main Aug 27, 2022
@TysonAndre TysonAndre deleted the test-8.1 branch September 21, 2022 23:43
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.

3 participants