File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change 16549
16549
'count' => 2,
16550
16550
'path' => __DIR__ . '/tests/system/Router/RouteCollectionTest.php',
16551
16551
];
16552
- $ignoreErrors[] = [
16553
- // identifier: class.nameCase
16554
- 'message' => '#^Class CodeIgniter\\\\Controller referenced with incorrect case\\: CodeIgniter\\\\controller\\.$#',
16555
- 'count' => 2,
16556
- 'path' => __DIR__ . '/tests/system/Router/RouteCollectionTest.php',
16557
- ];
16558
16552
$ignoreErrors[] = [
16559
16553
// identifier: missingType.return
16560
16554
'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