title: Laravel 4 - Trouble overriding model's save method
body: <p>I'm trying to override my Post class's save() method so that I can validate some of the fields that will be saved to the record:</p>
  
  <pre><code>// User.php
  &lt;?php
  
  class Post extends Eloquent
  {
      public function save()
      {
          // code before save
          parent::save(); 
          //code after save
      }
  }
  </code></pre>
  
  <p>When I try and run a this method in my unit testing I get the following error:</p>
  
  <pre><code>..{"error":{"type":"ErrorException","message":"Declaration of Post::save() should be compatible with that of Illuminate\\Database\\Eloquent\\Model::save()","file":"\/var\/www\/laravel\/app\/models\/Post.php","line":4}}
  </code></pre>