title: Laravel command cannot call $this->info() in child class
body: <p>I'm just starting out with the basic concepts OO in PHP, </p>
  
  <p><strong>Foo.php</strong></p>
  
  <pre><code>class Foo extends Command {
  
  
      public function __construct()
      {
          parent::__construct();
      }
  
      public function fire()
      {
          $bar = new Bar();
      }
  
  }
  </code></pre>
  
  <p><strong>Bar.php</strong></p>
  
  <pre><code>class Bar extends Foo {
  
      public function __construct()
      {
          parent::__construct();
          $this-&gt;info('Bar');
  
      }
  }
  </code></pre>
  
  <p>When I run <code>Foo::fire()</code> it gives: <code>Call to undefined method Foo::__construct()</code>. But <code>Foo</code> clearly has a constructor, what am I doing wrong?</p>
  
  <p>Another thing I suspect is that it might be a Laravel problem rather than PHP. This is an <code>artisan</code> command that I created.</p>
  
  <p>EDIT:</p>
  
  <p>Also calling <code>$this-&gt;info('Bar')</code> anywhere in <code>Bar</code> will also give <code>Call to a member function writeln() on a non-object</code>. Why can't I call a parent's method from the child class?</p>