Skip to content

Commit c1cd9bf

Browse files
authored
Merge pull request #6500 from codeigniter4/dependabot/composer/rector/rector-0.14.2
chore(deps-dev): update rector/rector requirement from 0.14.1 to 0.14.2
2 parents ddee0c6 + 3dcc7ad commit c1cd9bf

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"phpstan/phpstan": "^1.7.1",
2525
"phpunit/phpunit": "^9.1",
2626
"predis/predis": "^1.1 || ^2.0",
27-
"rector/rector": "0.14.1"
27+
"rector/rector": "0.14.2"
2828
},
2929
"suggest": {
3030
"ext-imagick": "If you use Image class ImageMagickHandler",

rector.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,6 @@
104104
__DIR__ . '/app/Config/Validation.php',
105105
__DIR__ . '/tests/system/Validation/StrictRules/ValidationTest.php',
106106
__DIR__ . '/tests/system/Validation/ValidationTest.php',
107-
108-
// expected Qualified name
109-
__DIR__ . '/tests/system/Autoloader/FileLocatorTest.php',
110-
__DIR__ . '/tests/system/Router/RouteCollectionTest.php',
111107
],
112108

113109
// sometime too detail

tests/system/Autoloader/FileLocatorTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace CodeIgniter\Autoloader;
1313

14+
use CodeIgniter\HTTP\Header;
1415
use CodeIgniter\Test\CIUnitTestCase;
1516
use Config\Autoload;
1617
use Config\Modules;
@@ -260,7 +261,7 @@ public function testListFilesWithoutPath()
260261
public function testFindQNameFromPathSimple()
261262
{
262263
$ClassName = $this->locator->findQualifiedNameFromPath(SYSTEMPATH . 'HTTP/Header.php');
263-
$expected = '\CodeIgniter\HTTP\Header';
264+
$expected = '\\' . Header::class;
264265

265266
$this->assertSame($expected, $ClassName);
266267
}

tests/system/Router/RouteCollectionTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace CodeIgniter\Router;
1313

14+
use App\Controllers\Home;
1415
use CodeIgniter\Config\Services;
1516
use CodeIgniter\Test\CIUnitTestCase;
1617
use Config\Modules;
@@ -1463,7 +1464,7 @@ public function testRouteOverwritingTwoRules()
14631464
$routes->get('/', 'Home::index');
14641465

14651466
// the second rule applies, so overwrites the first
1466-
$expects = '\App\Controllers\Home';
1467+
$expects = '\\' . Home::class;
14671468

14681469
$this->assertSame($expects, $router->handle('/'));
14691470
}

0 commit comments

Comments
 (0)