add PHP 7.1 typehints

This commit is contained in:
TomasVotruba
2017-11-30 10:27:01 +01:00
committed by Jaap van Otterdijk
parent f9d1a0c177
commit 4a9675841b
64 changed files with 410 additions and 430 deletions
+5 -5
View File
@@ -26,7 +26,7 @@ class SerializerTest extends TestCase
/**
* Call Mockery::close after each test.
*/
public function tearDown()
public function tearDown(): void
{
m::close();
}
@@ -40,7 +40,7 @@ class SerializerTest extends TestCase
* @uses phpDocumentor\Reflection\DocBlock\Tags\BaseTag
* @uses phpDocumentor\Reflection\DocBlock\Tags\Generic
*/
public function testReconstructsADocCommentFromADocBlock()
public function testReconstructsADocCommentFromADocBlock(): void
{
$expected = <<<'DOCCOMMENT'
/**
@@ -74,7 +74,7 @@ DOCCOMMENT;
* @uses phpDocumentor\Reflection\DocBlock\Tags\BaseTag
* @uses phpDocumentor\Reflection\DocBlock\Tags\Generic
*/
public function testAddPrefixToDocBlock()
public function testAddPrefixToDocBlock(): void
{
$expected = <<<'DOCCOMMENT'
aa/**
@@ -108,7 +108,7 @@ DOCCOMMENT;
* @uses phpDocumentor\Reflection\DocBlock\Tags\BaseTag
* @uses phpDocumentor\Reflection\DocBlock\Tags\Generic
*/
public function testAddPrefixToDocBlockExceptFirstLine()
public function testAddPrefixToDocBlockExceptFirstLine(): void
{
$expected = <<<'DOCCOMMENT'
/**
@@ -142,7 +142,7 @@ DOCCOMMENT;
* @uses phpDocumentor\Reflection\DocBlock\Tags\BaseTag
* @uses phpDocumentor\Reflection\DocBlock\Tags\Generic
*/
public function testWordwrapsAroundTheGivenAmountOfCharacters()
public function testWordwrapsAroundTheGivenAmountOfCharacters(): void
{
$expected = <<<'DOCCOMMENT'
/**