title: How to fix phpunit fatal error must be compatible?
body: <p>While using phpunit 8.5 with php 7.2.24 I keep getting the following error while running my test:</p>
  
  <pre><code>Fatal error: Declaration of PHPUnit\TextUI\ResultPrinter::addError(PHPUnit\Framework\Test $test, Throwable $t, float $time): void must be compatible with PHPUnit_Framework_TestListener::addError(PHPUnit_Framework_Test $test, Exception $e, $time) in /var/local/gc-global.01/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php on line 31
  </code></pre>
  
  <p>I had tried different versions of phpunit and reviewed my tests but I still can't understand what is the problem. </p>
  
  <p>Anyone has seen something like this?</p>