mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 21:38:22 +01:00
allow PHPUnit 8
This commit is contained in:
parent
dbcf9dd5a3
commit
0ec0b34a0c
1
ecs.yml
1
ecs.yml
@ -137,6 +137,7 @@ parameters:
|
|||||||
# 3rd party parent code
|
# 3rd party parent code
|
||||||
- 'src/DependencyInjection/Loader/TolerantRectorYamlFileLoader.php'
|
- 'src/DependencyInjection/Loader/TolerantRectorYamlFileLoader.php'
|
||||||
- 'src/PhpParser/Printer/BetterStandardPrinter.php'
|
- 'src/PhpParser/Printer/BetterStandardPrinter.php'
|
||||||
|
- 'tests/AbstractContainerAwareTestCase.php'
|
||||||
|
|
||||||
Symplify\CodingStandard\Sniffs\Debug\CommentedOutCodeSniff.Found:
|
Symplify\CodingStandard\Sniffs\Debug\CommentedOutCodeSniff.Found:
|
||||||
# notes
|
# notes
|
||||||
|
@ -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#'
|
- '#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\>#'
|
- '#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#'
|
||||||
|
@ -21,9 +21,11 @@ abstract class AbstractContainerAwareTestCase extends TestCase
|
|||||||
/**
|
/**
|
||||||
* Constructs a test case with the given name.
|
* Constructs a test case with the given name.
|
||||||
*
|
*
|
||||||
|
* @param string|null $data
|
||||||
* @param mixed[] $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) {
|
if (self::$cachedContainer === null) {
|
||||||
self::$cachedContainer = (new ContainerFactory())->create();
|
self::$cachedContainer = (new ContainerFactory())->create();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user