whatthejeff / nyancat-phpunit-resultprinter

Nyan Cat result printer for PHPUnit
MIT License
284 stars 23 forks source link

PHP Fatal error: Declaration of NyanCat\PHPUnit\ResultPrinter::addError(PHPUnit\Framework\Test $test, Exception $e, $time) must be compatible with PHPUnit\TextUI\ResultPrinter::addError(PHPUnit\Framework\Test $test, Throwable $t, float $time): void in /Users/renatog/Projects/JnJ/PGA/genius/drupal/vendor/whatthejeff/nyancat-phpunit-resultprinter/src/NyanCat/PHPUnit/ResultPrinter.php on line 181 #20

Open renatog-cit opened 4 years ago

renatog-cit commented 4 years ago

Hello guys!

Congrats on your project.

I'm trying to use but I got this error:

Command $ vendor/bin/phpunit --configuration web/profile web/profiles/contrib/profile/modules/phpunit/tests/src/Unit/ClassTest.php

Result: PHP Fatal error: Declaration of NyanCat\PHPUnit\ResultPrinter::addError(PHPUnit\Framework\Test $test, Exception $e, $time) must be compatible with PHPUnit\TextUI\ResultPrinter::addError(PHPUnit\Framework\Test $test, Throwable $t, float $time): void in /Users/renatog/Projects/JnJ/PGA/genius/drupal/vendor/whatthejeff/nyancat-phpunit resultprinter/src/NyanCat/PHPUnit/ResultPrinter.php on line 181

Do you know how we can solve it?

Thanks