Skip to content

Commit 3dfc92e

Browse files
authored
Merge pull request #399 from cakephp/5.x-cleanup
fix wrong namespace definitions
2 parents 6d12ec2 + 7dd698e commit 3dfc92e

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

tests/TestCase/Rector/MethodCall/RemoveMethodCallArgsRector/Fixture/fixture.php.inc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22

3-
namespace Cake\Upgrade\Test\TestCase\Rector\MethodCall\AddMethodCallArgsRectorTest\Fixture;
3+
namespace Cake\Upgrade\Test\TestCase\Rector\MethodCall\RemoveMethodCallArgsRector\Fixture;
44

5-
use Cake\Upgrade\Test\TestCase\Rector\MethodCall\AddMethodCallArgsRector\Source\SomeModelType;
5+
use Cake\Upgrade\Test\TestCase\Rector\MethodCall\RemoveMethodCallArgsRector\Source\SomeModelType;
66

7-
function addMethodCallArgs()
7+
function removeMethodCallArgs()
88
{
99
$object = new SomeModelType();
1010
$object->getAttribute('paging');
@@ -15,11 +15,11 @@ function addMethodCallArgs()
1515
-----
1616
<?php
1717

18-
namespace Cake\Upgrade\Test\TestCase\Rector\MethodCall\AddMethodCallArgsRectorTest\Fixture;
18+
namespace Cake\Upgrade\Test\TestCase\Rector\MethodCall\RemoveMethodCallArgsRector\Fixture;
1919

20-
use Cake\Upgrade\Test\TestCase\Rector\MethodCall\AddMethodCallArgsRector\Source\SomeModelType;
20+
use Cake\Upgrade\Test\TestCase\Rector\MethodCall\RemoveMethodCallArgsRector\Source\SomeModelType;
2121

22-
function addMethodCallArgs()
22+
function removeMethodCallArgs()
2323
{
2424
$object = new SomeModelType();
2525
$object->setAttribute('paging', []);

tests/TestCase/Rector/MethodCall/RemoveMethodCallArgsRector/Source/SomeModelType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
declare(strict_types=1);
33

4-
namespace Cake\Upgrade\Test\TestCase\Rector\MethodCall\AddMethodCallArgsRector\Source;
4+
namespace Cake\Upgrade\Test\TestCase\Rector\MethodCall\RemoveMethodCallArgsRector\Source;
55

66
final class SomeModelType
77
{

tests/TestCase/Rector/MethodCall/RemoveMethodCallArgsRector/config/configured_rule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
use Cake\Upgrade\Rector\Rector\MethodCall\RemoveMethodCallRector;
55
use Cake\Upgrade\Rector\ValueObject\RemoveMethodCall;
6-
use Cake\Upgrade\Test\TestCase\Rector\MethodCall\AddMethodCallArgsRector\Source\SomeModelType;
6+
use Cake\Upgrade\Test\TestCase\Rector\MethodCall\RemoveMethodCallArgsRector\Source\SomeModelType;
77
use Rector\Config\RectorConfig;
88

99
return static function (RectorConfig $rectorConfig): void {

0 commit comments

Comments
 (0)