-
Notifications
You must be signed in to change notification settings - Fork 7
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
Variable references inside sequences may not be working #25
Comments
I've imagined a fix for this.
This would probably fix another issues we had with lazy loading. |
I did a PR for this issue but it not solve the problem inside #25 as well. The goal here is nested interpretation as fallow (a) but the issue ask for something like (b) use the operators [] for both things(indicate array and variable association) generate this sort of mistake. from the INI(and parse_ini ) point of view the (b) is more interesting, but from the PHP point of view I think the (a) have more "common sense" inside. anyway, |
I believe the PR was related to making a distinction between The |
I am looking at #20 now and started wondering if we shouldn't make a better distinction between arrays and references (iow lookup to another declared value.) perhaps using an This will solve the issue by means of: [baz]
baz = 'me baz'
foo = [$baz] Will give the result for Thoughts? Any motivations why we are using the |
Needs some tests, but it seems that something like
foo = [[baz]]
isn't expanding thebaz
variable properly. Output should be something compatible to$container->foo = array($container->baz)
.The text was updated successfully, but these errors were encountered: