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

"and" not converted #24

Open
flip111 opened this issue Jan 23, 2016 · 0 comments
Open

"and" not converted #24

flip111 opened this issue Jan 23, 2016 · 0 comments
Labels

Comments

@flip111
Copy link

flip111 commented Jan 23, 2016

in php

if !(is_scalar(v)) and !(is_array(v)) {

error

Zephir\ParseException: Syntax error in /home/flip101/zep/properties.zep on line 16

                    if !(is_scalar(v)) and !(is_array(v)) {
    -------------------------------------^

documentation: http://docs.zephir-lang.com/en/latest/operators.html#logical-operators

be aware that in php and and && do not have the same precedence, so be careful when converting them to zephir. https://secure.php.net/manual/en/language.operators.precedence.php

@fezfez fezfez added the bug label Mar 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants