Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

Implement check for compare with array #45

Closed
ovr opened this issue Mar 31, 2016 · 4 comments
Closed

Implement check for compare with array #45

ovr opened this issue Mar 31, 2016 · 4 comments

Comments

@ovr
Copy link
Owner

ovr commented Mar 31, 2016

Example

$a = [];

if ($a > 1) {
}

Expected count via it is an array type

$a = [];

if (count($a) > 1) {
}
@ovr
Copy link
Owner Author

ovr commented May 24, 2016

Hey!

Seems This will be rly easy to implement,
What We need to do?
Wee need to create a new Expression Analyzer with BinaryOp type hint
Subscribe for all binary operators (without <=> operator)
After it We need to compile left and right side and check is it an array type or not?

/c @th3fallen

Thanks

@ovr ovr mentioned this issue May 24, 2016
@ovr
Copy link
Owner Author

ovr commented May 25, 2016

ping @th3fallen

@th3fallen
Copy link

@ovr sorry had something come up at work thats going to absorb me for the next 10 days. i'll have to come back and lend a hand after. Sorry bro.

@ovr
Copy link
Owner Author

ovr commented Oct 7, 2016

Implemented by @ddmler in #198

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

No branches or pull requests

3 participants