Laravel FatalErrorException in Handler.php line 25
<p>I'm getting the following error on random occasions, working on a Laravel 5.1 project on the latest homestead with PHP7</p>

<pre><code>FatalErrorException in Handler.php line 25:
Uncaught TypeError: Argument 1 passed to App\Exceptions\Handler::report() must be an instance of Exception, instance of TypeError given, called in /home/vagrant/Code/henau/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php on line 73 and defined in /home/vagrant/Code/henau/app/Exceptions/Handler.php:25
Stack trace:
#0 /home/vagrant/Code/henau/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(73): App\Exceptions\Handler-&gt;report(Object(TypeError))
#1 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions-&gt;handleException(Object(TypeError))
#2 {main}
thrown
</code></pre>

<p>Even when I undo work that has been causing it, It stays. It's being caused by this block of code in this instance</p>

<pre><code>\Mail::send('emails.registered', $user, function ($m) {
    $m-&gt;to('miguel@dummyaddress.com')-&gt;subject('New Order');
});
</code></pre>

<blockquote>
  <p>It seems to me the error is not directly code-related. I've seen other people encounter it in complete different situations. And i've seen it popup in older threads regarding Homestead and PHP7. There was an askubuntu thread but it's offline, So I hope we can reopen the discussion here.</p>
</blockquote>