Fatal error because an Error instance is being passed instead of an expected Exception instance
<p>I just installed xampp with php 7.0.4 and a fresh cakephp 3.2.6. 
I did a lot of research and everything I found shows that they are compatible.</p>

<p>However as soon as I go to open the application with a browser, cake replies with an Internal Error.</p>

<p>The only pointer as to what to do is that xampp logs the following in apache error.log:</p>

<blockquote>
  <p>PHP Fatal error: Uncaught TypeError: Argument 1 passed to Cake\Error\BaseErrorHandler::handleException() must be an instance of Exception, instance of Error given in D:\Xampp\htdocs\cakephp\vendor\cakephp\cakephp\src\Error\BaseErrorHandler.php:153<br>
  Stack trace:<br>
  #0 [internal function]: Cake\Error\BaseErrorHandler->handleException(Object(Error))<br>
  #1 {main} thrown in D:\Xampp\htdocs\cakephp\vendor\cakephp\cakephp\src\Error\BaseErrorHandler.php on line 153</p>
</blockquote>

<p>I tried php 5.6 but it still shows the error in the log.</p>