Library/Operators/Arithmetical/ArithmeticalBaseOperator.php
private function getDynamicTypes(Variable $left, Variable $right)
    {
        if ('/' == $this->operator) {
            return 'double';
        }

        switch ($left->getType()) {
            case 'int':
            case 'uint':
            case 'long':
            case 'ulong':
                switch ($right->getType()) {
                    case 'int':
                    case 'uint':
                    case 'long':
                    case 'ulong':
                        return 'int';
                }
                break;
        }

        return 'double';
    }
private function getDynamicTypes(Variable $left, Variable $right)
    {
        if ('/' == $this->operator) {
            return 'double';
        }

        switch ($left->getType()) {
            case 'int':
            case 'uint':
            case 'long':
            case 'ulong':
                switch ($right->getType()) {
                    case 'int':
                    case 'uint':
                    case 'long':
                    case 'ulong':
                        return 'int';
                }
                break;
        }

        return 'double';
    }
private function getDynamicTypes ( Variable $ left , Variable $ right ) { if ( '/' == $ this -> operator ) { return 'double' ; } switch ( $ left -> getType ( ) ) { case 'int' : case 'uint' : case 'long' : case 'ulong' : switch ( $ right -> getType ( ) ) { case 'int' : case 'uint' : case 'long' : case 'ulong' : return 'int' ; } break ; } return 'double' ; }
Returns proper dynamic types.

@param Variable $left
@param Variable $right

@return string
Returns proper dynamic types .