mirror of
https://github.com/danog/phpdoc-parser.git
synced 2024-12-02 09:28:02 +01:00
fix php 7.0 compatibility
This commit is contained in:
parent
f69d70526a
commit
958806cdce
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace PHPStan\PhpDocParser\Parser;
|
namespace PHPStan\PhpDocParser\Parser;
|
||||||
|
|
||||||
|
use Iterator;
|
||||||
use PHPStan\PhpDocParser\Ast\ConstExpr\ConstExprArrayItemNode;
|
use PHPStan\PhpDocParser\Ast\ConstExpr\ConstExprArrayItemNode;
|
||||||
use PHPStan\PhpDocParser\Ast\ConstExpr\ConstExprArrayNode;
|
use PHPStan\PhpDocParser\Ast\ConstExpr\ConstExprArrayNode;
|
||||||
use PHPStan\PhpDocParser\Ast\ConstExpr\ConstExprFalseNode;
|
use PHPStan\PhpDocParser\Ast\ConstExpr\ConstExprFalseNode;
|
||||||
@ -55,7 +56,7 @@ class ConstExprParserTest extends \PHPUnit\Framework\TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function provideTrueNodeParseData(): iterable
|
public function provideTrueNodeParseData(): Iterator
|
||||||
{
|
{
|
||||||
yield [
|
yield [
|
||||||
'true',
|
'true',
|
||||||
@ -74,7 +75,7 @@ class ConstExprParserTest extends \PHPUnit\Framework\TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function provideFalseNodeParseData(): iterable
|
public function provideFalseNodeParseData(): Iterator
|
||||||
{
|
{
|
||||||
yield [
|
yield [
|
||||||
'false',
|
'false',
|
||||||
@ -93,7 +94,7 @@ class ConstExprParserTest extends \PHPUnit\Framework\TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function provideNullNodeParseData(): iterable
|
public function provideNullNodeParseData(): Iterator
|
||||||
{
|
{
|
||||||
yield [
|
yield [
|
||||||
'null',
|
'null',
|
||||||
@ -112,7 +113,7 @@ class ConstExprParserTest extends \PHPUnit\Framework\TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function provideIntegerNodeParseData(): iterable
|
public function provideIntegerNodeParseData(): Iterator
|
||||||
{
|
{
|
||||||
yield [
|
yield [
|
||||||
'123',
|
'123',
|
||||||
@ -146,7 +147,7 @@ class ConstExprParserTest extends \PHPUnit\Framework\TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function provideFloatNodeParseData(): iterable
|
public function provideFloatNodeParseData(): Iterator
|
||||||
{
|
{
|
||||||
yield [
|
yield [
|
||||||
'123.4',
|
'123.4',
|
||||||
@ -210,7 +211,7 @@ class ConstExprParserTest extends \PHPUnit\Framework\TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function provideStringNodeParseData(): iterable
|
public function provideStringNodeParseData(): Iterator
|
||||||
{
|
{
|
||||||
yield [
|
yield [
|
||||||
'"foo"',
|
'"foo"',
|
||||||
@ -234,7 +235,7 @@ class ConstExprParserTest extends \PHPUnit\Framework\TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function provideArrayNodeParseData(): iterable
|
public function provideArrayNodeParseData(): Iterator
|
||||||
{
|
{
|
||||||
yield [
|
yield [
|
||||||
'[]',
|
'[]',
|
||||||
@ -336,7 +337,7 @@ class ConstExprParserTest extends \PHPUnit\Framework\TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function provideFetchNodeParseData(): iterable
|
public function provideFetchNodeParseData(): Iterator
|
||||||
{
|
{
|
||||||
yield [
|
yield [
|
||||||
'GLOBAL_CONSTANT',
|
'GLOBAL_CONSTANT',
|
||||||
|
Loading…
Reference in New Issue
Block a user