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 1654916549 'count' => 2,
1655016550 'path' => __DIR__ . '/tests/system/Router/RouteCollectionTest.php',
1655116551];
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- ];
1655816552$ignoreErrors[] = [
1655916553 // identifier: missingType.return
1656016554 'message' => '#^Method CodeIgniter\\\\Router\\\\RouteCollectionTest\\:\\:getCollector\\(\\) has no return type specified\\.$#',
Original file line number Diff line number Diff line change 1414namespace CodeIgniter \Router ;
1515
1616use App \Controllers \Product ;
17- use CodeIgniter \controller ;
17+ use CodeIgniter \Controller ;
1818use CodeIgniter \Exceptions \PageNotFoundException ;
1919use CodeIgniter \HTTP \Method ;
2020use CodeIgniter \Test \CIUnitTestCase ;
@@ -243,10 +243,10 @@ public function testAddRecognizesCustomNamespaces(): void
243243 $ routes = $ this ->getCollector ();
244244 $ routes ->setDefaultNamespace ('\CodeIgniter ' );
245245
246- $ routes ->add ('home ' , 'controller ' );
246+ $ routes ->add ('home ' , 'Controller ' );
247247
248248 $ expects = [
249- 'home ' => '\\' . controller ::class,
249+ 'home ' => '\\' . Controller ::class,
250250 ];
251251
252252 $ routes = $ routes ->getRoutes ();
You can’t perform that action at this time.
0 commit comments