public function startTest(\PHPUnit\Framework\Test $test): void
will result in:
PHPUnit 6.5.7 by Sebastian Bergmann and contributors.
Fatal error: Uncaught TypeError: Return value of Codedungeon\PHPUnitPrettyResultPrinter\_ResultPrinter::startTest() must be an instance of Codedungeon\PHPUnitPrettyResultPrinter\void, none returned in vendor/codedungeon/phpunit-result-printer/src/Printer.php on line 27
TypeError: Return value of Codedungeon\PHPUnitPrettyResultPrinter\_ResultPrinter::startTest() must be an instance of Codedungeon\PHPUnitPrettyResultPrinter\void, none returned in vendor/codedungeon/phpunit-result-printer/src/Printer.php on line 27
:void return types only work in php 7.2+ and therefor it will break when using < 7.2
The composer states:
"php": "^7.0",
while the code contains:
public function startTest(\PHPUnit\Framework\Test $test): void
will result in:
:void
return types only work in php 7.2+ and therefor it will break when using < 7.2