From 46fef4d36ba048117e117feeeb2493218a4b5542 Mon Sep 17 00:00:00 2001 From: Jan Tvrdik Date: Sat, 16 Dec 2017 19:32:10 +0100 Subject: [PATCH] fix compatibility with PHP 7.0 --- tests/PHPStan/Parser/PhpDocParserTest.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/PHPStan/Parser/PhpDocParserTest.php b/tests/PHPStan/Parser/PhpDocParserTest.php index 5bb2639..ac2203d 100644 --- a/tests/PHPStan/Parser/PhpDocParserTest.php +++ b/tests/PHPStan/Parser/PhpDocParserTest.php @@ -63,7 +63,7 @@ class PhpDocParserTest extends \PHPUnit\Framework\TestCase } - public function provideParamTagsData(): iterable + public function provideParamTagsData(): \Iterator { yield [ 'OK without description', @@ -283,7 +283,7 @@ class PhpDocParserTest extends \PHPUnit\Framework\TestCase } - public function provideVarTagsData(): iterable + public function provideVarTagsData(): \Iterator { yield [ 'OK without description and variable name', @@ -523,7 +523,7 @@ class PhpDocParserTest extends \PHPUnit\Framework\TestCase } - public function providePropertyTagsData(): iterable + public function providePropertyTagsData(): \Iterator { yield [ 'OK without description', @@ -709,7 +709,7 @@ class PhpDocParserTest extends \PHPUnit\Framework\TestCase } - public function provideReturnTagsData(): iterable + public function provideReturnTagsData(): \Iterator { yield [ 'OK without description', @@ -869,7 +869,7 @@ class PhpDocParserTest extends \PHPUnit\Framework\TestCase } - public function provideThrowsTagsData(): iterable + public function provideThrowsTagsData(): \Iterator { yield [ 'OK without description', @@ -953,7 +953,7 @@ class PhpDocParserTest extends \PHPUnit\Framework\TestCase } - public function provideMethodTagsData(): iterable + public function provideMethodTagsData(): \Iterator { yield [ 'OK non-static, without return type', @@ -1330,7 +1330,7 @@ class PhpDocParserTest extends \PHPUnit\Framework\TestCase } - public function provideSingleLinePhpDocData(): iterable + public function provideSingleLinePhpDocData(): \Iterator { yield [ 'empty',