title: PHP Deprecated: The each() function is deprecated
body: <p>I am currently receiving the following error</p>
  
  <blockquote>
    <p>PHP Deprecated: The each() function is deprecated. This message will
    be suppressed on further calls in
    wp-content/plugins/js_composer/include/classes/core/class-vc-mapper.php
    on line 111</p>
  </blockquote>
  
  <p>Line of code ...</p>
  
  <p>I am currently receiving the following error</p>
  
  <p>PHP Deprecated: The each() function is deprecated. This message will be suppressed on further calls in wp-content/plugins/js_composer/include/classes/core/class-vc-mapper.php on line 111</p>
  
  <p>Line of code ...</p>
  
  <pre><code>protected function callActivities() {
      do_action( 'vc_mapper_call_activities_before' );
      while ( $activity = each( $this-&gt;init_activity ) ) { // &lt;&lt;&lt;&lt; LINE 111
          list( $object, $method, $params ) = $activity[1];
          if ( 'mapper' === $object ) {
              switch ( $method ) {
                  case 'map':
                      WPBMap::map( $params['tag'], $params['attributes'] );
                      break;
                  case 'drop_param':
                      WPBMap::dropParam( $params['name'], $params['attribute_name'] );
                      break;
                  case 'add_param':
                      WPBMap::addParam( $params['name'], $params['attribute'] );
                      break;
                  case 'mutate_param':
                      WPBMap::mutateParam( $params['name'], $params['attribute'] );
                      break;
                  case 'drop_all_shortcodes':
                      WPBMap::dropAllShortcodes();
                      break;
                  case 'drop_shortcode':
                      WPBMap::dropShortcode( $params['name'] );
                      break;
                  case 'modify':
                      WPBMap::modify( $params['name'], $params['setting_name'], $params['value'] );
                      break;
              }
          }
      }
  }
  </code></pre>
  
  <p>Would anyone know to help me solve this problem? How do I fix it?</p>