code: private static function getActualType($value)
      {
          $actualType = gettype($value);
  
          if ('object' === $actualType) {
              $actualType = get_class($value);
          }
  
          return $actualType;
      }
docs: Helper function to return the actual type of a value.
  
  @param mixed $value The value we want the type of.
  
  @return string The type name of the value.