allow PHPUnit 8

This commit is contained in:
Tomas Votruba 2019-02-06 12:23:31 +01:00
parent dbcf9dd5a3
commit 0ec0b34a0c
3 changed files with 5 additions and 1 deletions

View File

@ -137,6 +137,7 @@ parameters:
# 3rd party parent code
- 'src/DependencyInjection/Loader/TolerantRectorYamlFileLoader.php'
- 'src/PhpParser/Printer/BetterStandardPrinter.php'
- 'tests/AbstractContainerAwareTestCase.php'
Symplify\CodingStandard\Sniffs\Debug\CommentedOutCodeSniff.Found:
# notes

View File

@ -108,3 +108,4 @@ parameters:
- '#Parameter \#1 \$nodes of method Rector\\PhpParser\\Node\\BetterNodeFinder\:\:find\(\) expects array<PhpParser\\Node\>\|PhpParser\\Node, array<PhpParser\\Node\\Stmt\>\|null given#'
- '#Method Rector\\NetteToSymfony\\Rector\\RouterListToControllerAnnotationsRector\:\:resolveAssignRouteNodes\(\) should return array<PhpParser\\Node\\Expr\\Assign\> but returns array<PhpParser\\Node\>#'
- '#PHPDoc tag @param for parameter \$data with type mixed is not subtype of native type array#'

View File

@ -21,9 +21,11 @@ abstract class AbstractContainerAwareTestCase extends TestCase
/**
* Constructs a test case with the given name.
*
* @param string|null $data
* @param mixed[] $data
* @param string $dataName
*/
public function __construct(?string $name = null, array $data = [], string $dataName = '')
public function __construct($name = null, array $data = [], $dataName = '')
{
if (self::$cachedContainer === null) {
self::$cachedContainer = (new ContainerFactory())->create();