title: PHP 7.4 Warning: Creating default object from empty value
body: <p>The apache error logs are filling up with this. I don't want to suppress all errors though, and understand I need to create an object explicitly somewhere but the syntax escapes me.</p>
  
  <blockquote>
    <p>Warning:  Creating default object from empty value in
    libraries/cegcore2/libs/helper.php on line 22</p>
  </blockquote>
  
  <pre><code>class Helper {
      use \G2\L\T\GetSet;
  
      var $view = null;
      var $_vars = array();
      var $data = array();
      var $params = array();
  
      function __construct(&amp;$view = null, $config = []){
          $this-&gt;view = &amp;$view;
          $this-&gt;_vars = &amp;$view-&gt;_vars; // &lt;---- Line 22
          $this-&gt;data = &amp;$view-&gt;data;
  
          if(!empty($config)){
              foreach($config as $k =&gt; $v){
                  $this-&gt;$k = $v;
              }
          }
      }
  
  }
  </code></pre>