Skip to content

Commit e9167e9

Browse files
committed
only Controller and null on ControllerTest
1 parent 12a97dc commit e9167e9

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

rector.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,17 @@
121121
__DIR__ . '/tests/system/Email/EmailTest.php',
122122
],
123123

124-
// union mixed bug @see https://github.com/rectorphp/rector/issues/7640
125124
TypedPropertyFromAssignsRector::class => [
125+
// union mixed bug @see https://github.com/rectorphp/rector/issues/7640
126126
__DIR__ . '/system/Model.php',
127127
__DIR__ . '/tests/system/API/ResponseTraitTest.php',
128128
__DIR__ . '/tests/system/Honeypot/HoneypotTest.php',
129129
__DIR__ . '/tests/system/Filters/HoneypotTest.php',
130130
__DIR__ . '/tests/system/Test/TestResponseTest.php',
131131
__DIR__ . '/tests/system/Database/Live/ConnectTest.php',
132+
133+
// new class extends Controller marked as object
134+
__DIR__ . '/tests/system/ControllerTest.php',
132135
],
133136
]);
134137

tests/system/ControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ final class ControllerTest extends CIUnitTestCase
4141
private App $config;
4242

4343
/**
44-
* @var Controller|object|null
44+
* @var Controller|null
4545
*/
4646
private $controller;
4747

0 commit comments

Comments
 (0)