Skip to content
This repository has been archived by the owner on Jun 4, 2019. It is now read-only.

wrong parsing of short form of ternary if with no spaces $rows?:false; #56

Closed
Techmind opened this issue Aug 16, 2013 · 2 comments · May be fixed by #100
Closed

wrong parsing of short form of ternary if with no spaces $rows?:false; #56

Techmind opened this issue Aug 16, 2013 · 2 comments · May be fixed by #100

Comments

@Techmind
Copy link

echo '<?php $x = $rows?:false;' > test.php
sgrep -e 'reset(X->Y(...));' test.php
warning: parsing problem in /home/ibogunov/test.php

echo '<?php $x = $rows ? : false;' > test.php
sgrep -e 'reset(X->Y(...));' test.php

@aryx
Copy link
Contributor

aryx commented Aug 19, 2013

I think it's because some ambiguities with XHP (a facebook extension).

@phooji
Copy link
Contributor

phooji commented Apr 8, 2015

Closing since the discussion has moved to the pull request.

@phooji phooji closed this as completed Apr 8, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants