mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 21:38:22 +01:00
add PHPUnit 8 void return types
This commit is contained in:
parent
2e62d080f4
commit
f2c948170b
@ -6,3 +6,13 @@ services:
|
||||
# https://github.com/sebastianbergmann/phpunit/issues/3123
|
||||
'PHPUnit_Framework_MockObject_MockObject': 'PHPUnit\Framework\MockObject\MockObject'
|
||||
Rector\PHPUnit\Rector\MethodCall\AssertEqualsParameterToSpecificMethodsTypeRector: ~
|
||||
|
||||
Rector\Rector\Typehint\ReturnTypehintRector:
|
||||
PHPUnit\Framework\TestCase:
|
||||
setUpBeforeClass: 'void'
|
||||
setUp: 'void'
|
||||
assertPreConditions: 'void'
|
||||
assertPostConditions: 'void'
|
||||
tearDown: 'void'
|
||||
tearDownAfterClass: 'void'
|
||||
onNotSuccessfulTest: 'void'
|
||||
|
@ -47,10 +47,8 @@ class SomeClass
|
||||
CODE_SAMPLE
|
||||
,
|
||||
[
|
||||
'$typehintForMethodByClass' => [
|
||||
'SomeClass' => [
|
||||
'getData' => 'array',
|
||||
],
|
||||
'SomeClass' => [
|
||||
'getData' => 'array',
|
||||
],
|
||||
]
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user