title: PhpStorm: get code inspection warnings for "Methods with the same name as their class will not be constructors"
body: <p>Okay I've finally switched to PHP7. My code is a bit old and will be refurbished. Some of the problems are:</p>
  
  <pre><code>class MagicClass
      function MagicClass(){
          //etc
      }
  </code></pre>
  
  <p>Which gives an deprecation warning during execution:</p>
  
  <blockquote>
    <p>Deprecated: Methods with the same name as their class will not be
    constructors in a future version of PHP; MagicClass has a deprecated
    constructor in</p>
  </blockquote>
  
  <p>This is good:</p>
  
  <pre><code>class MagicClass
      function __construct(){
          //etc
      }
  </code></pre>
  
  <hr>
  
  <p>How can I get PhpStorm code inspection to warn me for such errors in my current codebase?</p>