title: Mysqli object not created
body: <p>I am getting an error when trying to connect to creatge a mysqli object using PHP.</p>
  <p>File: new_lib.php</p>
  <pre><code>&lt;?php
  namespace Mysql\NewLib;
  interface NewLibMethods {
  }
  
  class MysqlClient implements NewLibMethods
  {
      public $mysql_client = null;
      function __construct ($creds)
      {
          $this-&gt;mysql_client = new mysqli($creds['host'], $creds['user'], $creds['pwd'], $creds['db_name']);
      }
  }
  </code></pre>
  <p>File test1.php</p>
  <pre><code>&lt;?php
  require 'new_lib.php';
  
  $mysql_obj = new Mysql\NewLib\MysqlClient(['host' =&gt; 'xxxxxxxxxx',
      'user' =&gt; 'xxxxxx',
      'pwd' =&gt; 'xxxxxxxx',
      'db_name' =&gt; 'xxxxxxxx']);
  </code></pre>
  <p>When I run test1.php, I get the following error message:</p>
  <pre><code>/usr/local/Cellar/php/8.0.10/bin/php /Users/jim/new_lib/test_1.php
  
  Fatal error: Uncaught Error: Class &quot;Mysql\NewLib\mysqli&quot; not found in /Users/jim/new_lib/new_lib.php:12
  Stack trace:
  #0 /Users/jim/new_lib/test_1.php(4): Mysql\NewLib\MysqlClient-&gt;__construct(Array)
  #1 {main}
    thrown in /Users/jim/new_lib/new_lib.php on line 12
  PHP Fatal error:  Uncaught Error: Class &quot;Mysql\NewLib\mysqli&quot; not found in /Users/jim/new_lib/new_lib.php:12
  Stack trace:
  #0 /Users/jim/new_lib/test_1.php(4): Mysql\NewLib\MysqlClient-&gt;__construct(Array)
  #1 {main}
    thrown in /Users/jim/new_lib/new_lib.php on line 12
  
  Process finished with exit code 255
  </code></pre>
  <p>Any ideas?</p>