CS: no whitespace before return type colon

This commit is contained in:
jrfnl
2021-08-08 19:41:03 +02:00
parent 2a1aba8089
commit a607236134
71 changed files with 522 additions and 522 deletions
+4 -4
View File
@@ -14,7 +14,7 @@ final class PregSplitTest extends TestCase
/** @var callable|null */
private $errorHandler = null;
protected function tearDown() : void
protected function tearDown(): void
{
if ($this->errorHandler === null) {
return;
@@ -26,7 +26,7 @@ final class PregSplitTest extends TestCase
/**
* @covers \phpDocumentor\Reflection\Utils::pregSplit
*/
public function testSimplePregSplit() : void
public function testSimplePregSplit(): void
{
$result = Utils::pregSplit('/\s/', 'word split');
@@ -36,10 +36,10 @@ final class PregSplitTest extends TestCase
/**
* @covers \phpDocumentor\Reflection\Utils::pregSplit
*/
public function testPregSplitThrowsOnError() : void
public function testPregSplitThrowsOnError(): void
{
//We need to disable the error handler for phpunit... because we expect some errors here
$this->errorHandler = set_error_handler(static function () : void {
$this->errorHandler = set_error_handler(static function (): void {
}, E_WARNING);
$this->expectException(PcreException::class);