title: php7 void return type not working?
body: <p>I have a problem with return types in php7, specially "void".</p>
  
  <p>it works with all other types, int, string, null, bool, class objects.</p>
  
  <p>but when i use void it expecting me to return an instance of object void but in reality it should not expect any return as thats what void is for.</p>
  
  <p>note: I'm running PHP 7.0.3</p>
  
  <p>here is the code:</p>
  
  <pre><code>   public static function setResponseCode(int $code) : void
      {
          http_response_code($code);
  
      }
  </code></pre>
  
  <p>and error message is:</p>
  
  <blockquote>
    <p>Uncaught TypeError: Return value of CodeBase\HttpRequester::setResponseCode() must be an instance of void, none returned in /var/www/html/src/HttpRequester.php:86 Stack trace: #0 /var/www/html/index.php(103): CodeBase\HttpRequester::setResponseCode(500) #1 {main} thrown in /var/www/html/src/HttpRequester.php on line 86</p>
  </blockquote>