title: Deprecated - Methods with the same name as their class will not be constructors in a future version of PHP
body: <p>In php v 5 these php codes have no problem :   </p>
  
  <pre><code>&lt;?php
  
  $ERRORS=array("INVALID_ERROR"=&gt;"Invalid/Unknown error",
                "ACCESS_DENIED"=&gt;"Access Denied",
                "INVALID_INPUT"=&gt;"Invalid Input",
                "INCOMPLETE_REQUEST"=&gt;"INCOMPLETE REQUEST"
              );
  
  class Error
  { /* This Class is for errors reported from core or interface.
       Normally errors should consist of lines of ( keys and  messages), formated in a string like "key|msg"
       key shows what is error about and msg is the error message for this situation
  
    */
      function Error($err_str)
      {
          $this-&gt;raw_err_str=$err_str;
          $this-&gt;err_msgs=array();
          $this-&gt;err_keys=array();
          $this-&gt;__splitErrorLines();
  
      }
  
      function __splitErrorLines()
      {
          $err_lines=split("\n",$this-&gt;raw_err_str);
          foreach($err_lines as $line)
              $this-&gt;__splitError($line);
      }
  
      function __splitError($err_str)
      {
          $err_sp=split("\|",$err_str,2);
          if(sizeof($err_sp)==2)
          {
              $this-&gt;err_msgs[]=$err_sp[1];
              $this-&gt;err_keys[]=$err_sp[0];
          }    
          else
          {
              $this-&gt;err_msgs[]=$err_str;
              $this-&gt;err_keys[]="";
          }
      }
  
      function getErrorKeys()
      {/*
          Return an array of error keys
       */
  
          return $this-&gt;err_keys;
      }
  
      function getErrorMsgs()
      {/*
          Return array of error msgs
          useful for set_page_error method of smarty
       */
          return $this-&gt;err_msgs;
      }
  
      function getErrorMsg()
      {/* 
          Return an string of all error messages concatanated
       */
          $msgs="";
          foreach ($this-&gt;err_msgs as $msg)
              $msgs.=$msg;
          return $msgs;
      }
  
  }
  
  function error($error_key)
  {/* return complete error message of $error_key */
      global $ERRORS;
      if (isset($ERRORS[$error_key]))
          return new Error($error_key."|".$ERRORS[$error_key]);
      else
          return new Error($ERRORS["INVALID_ERROR"]);
  }
  
  ?&gt;
  </code></pre>
  
  <p>But after installing php v7.3.2 i got this error :   </p>
  
  <blockquote>
    <p>Deprecated: Methods with the same name as their class will not be
    constructors in a future version of PHP; Error has a deprecated
    constructor in /usr/local/IBSng/interface/IBSng/inc/errors.php on line
    12</p>
    
    <p>Fatal error: Cannot declare class Error, because the name is already
    in use in /usr/local/IBSng/interface/IBSng/inc/errors.php on line 12</p>
  </blockquote>
  
  <p>What is that Fatal error mean &amp; how can i fix it?</p>