File tree 2 files changed +3
-9
lines changed
2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change 16573
16573
'count' => 2,
16574
16574
'path' => __DIR__ . '/tests/system/Router/RouteCollectionTest.php',
16575
16575
];
16576
- $ignoreErrors[] = [
16577
- // identifier: class.nameCase
16578
- 'message' => '#^Class CodeIgniter\\\\Controller referenced with incorrect case\\: CodeIgniter\\\\controller\\.$#',
16579
- 'count' => 2,
16580
- 'path' => __DIR__ . '/tests/system/Router/RouteCollectionTest.php',
16581
- ];
16582
16576
$ignoreErrors[] = [
16583
16577
// identifier: missingType.return
16584
16578
'message' => '#^Method CodeIgniter\\\\Router\\\\RouteCollectionTest\\:\\:getCollector\\(\\) has no return type specified\\.$#',
Original file line number Diff line number Diff line change 14
14
namespace CodeIgniter \Router ;
15
15
16
16
use App \Controllers \Product ;
17
- use CodeIgniter \controller ;
17
+ use CodeIgniter \Controller ;
18
18
use CodeIgniter \Exceptions \PageNotFoundException ;
19
19
use CodeIgniter \HTTP \Method ;
20
20
use CodeIgniter \Test \CIUnitTestCase ;
@@ -243,10 +243,10 @@ public function testAddRecognizesCustomNamespaces(): void
243
243
$ routes = $ this ->getCollector ();
244
244
$ routes ->setDefaultNamespace ('\CodeIgniter ' );
245
245
246
- $ routes ->add ('home ' , 'controller ' );
246
+ $ routes ->add ('home ' , 'Controller ' );
247
247
248
248
$ expects = [
249
- 'home ' => '\\' . controller ::class,
249
+ 'home ' => '\\' . Controller ::class,
250
250
];
251
251
252
252
$ routes = $ routes ->getRoutes ();
You can’t perform that action at this time.
0 commit comments