Skip to content
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

var_export54 #171

Open
schmunk42 opened this issue Sep 17, 2016 · 4 comments
Open

var_export54 #171

schmunk42 opened this issue Sep 17, 2016 · 4 comments

Comments

@schmunk42
Copy link
Owner

@uldisn Why is var_export54 needed in the generator, is this some PHP 5.4 specific code?

@uldisn
Copy link
Contributor

uldisn commented Sep 18, 2016

var_export output array in old style: array('a'=>1,'b' =>2), but var_export54: ['a'=>1,'b' =>2].

I still using PHP 5.4

@schmunk42
Copy link
Owner Author

Hmm, I don't get it ... can't you just use the var_export function from your current PHP version?!

When you're on 5.4 and you export with the above, you get a result which is not usable on 5.4 - as far as I understand.

@schmunk42
Copy link
Owner Author

Ah, I just noticed that short array syntax was introduced in 5.4 - so it's usable.

But I don't think we need an extra function, just for some code-style candy.

@schmunk42
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants