title: How do I fix this depracated PHP4 Style constructor issue?
body: <p>When testing my plugin for compatibility with PHP7, I'm seeing just one error in my plugin. </p>
  
  <pre><code>FOUND 1 ERROR AFFECTING 1 LINE
  
  246 | ERROR | Deprecated PHP4 style constructor are not supported since PHP7
  </code></pre>
  
  <p>Linked below is the file hosted on GitHub so that you can see it. </p>
  
  <p><a href="https://github.com/warfare-plugins/social-warfare/blob/master/functions/widgets.php" rel="nofollow">https://github.com/warfare-plugins/social-warfare/blob/master/functions/widgets.php</a></p>
  
  <pre><code>Line 246: function widget($args, $instance) {
  </code></pre>
  
  <p>This is a class designed to create a WordPress widget, but after Googling a bit, I can't quite see what it's trying to say about the deprecated constructor method. It's not using the same name as the class it's in.</p>
  
  <p>So anyways, what do I need to change on that line to make this fully PHP7 ready?</p>