public static function getTypeByValue($value) { return self::getType(gettype($value)); }
/** * If we don't know $type but know $value * * @param $value * @throws RuntimeException * @return CompiledExpression */ public static function fromZvalValue($value) { return new CompiledExpression(CompilerTypes::getTypeByValue($value), $value); }