mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 01:57:13 +00:00
CS: no whitespace before return type colon
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user