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

"and" not converted #24

Open
Open
@flip111

Description

@flip111

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions