phpsa
phpsa copied to clipboard
[Compiler] Check operator supported types
We need to check all Expression Compilers for supported types and add those that are missing. In PR #208 I have done that for: BinaryOp, Casts, Operators\Logical, Operators\Comparison (those that support all types)
So we still need to check:
- [ ] Expression directory
- [ ] AssignOp
- [ ] Operators directory
- [ ] Operators\Arithmetical
- [ ] Operators\Bitwise
Basically what you have to check is: Is it possible to use {type} {operator} {type} (example: object * resource)? if yes add those types. if you get any error message (notice too) they are considered not supported. (we add those later then)