Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions phpstan-baseline.php
Original file line number Diff line number Diff line change
Expand Up @@ -16573,12 +16573,6 @@
'count' => 2,
'path' => __DIR__ . '/tests/system/Router/RouteCollectionTest.php',
];
$ignoreErrors[] = [
// identifier: class.nameCase
'message' => '#^Class CodeIgniter\\\\Controller referenced with incorrect case\\: CodeIgniter\\\\controller\\.$#',
'count' => 2,
'path' => __DIR__ . '/tests/system/Router/RouteCollectionTest.php',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Method CodeIgniter\\\\Router\\\\RouteCollectionTest\\:\\:getCollector\\(\\) has no return type specified\\.$#',
Expand Down
6 changes: 3 additions & 3 deletions tests/system/Router/RouteCollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
namespace CodeIgniter\Router;

use App\Controllers\Product;
use CodeIgniter\controller;
use CodeIgniter\Controller;
use CodeIgniter\Exceptions\PageNotFoundException;
use CodeIgniter\HTTP\Method;
use CodeIgniter\Test\CIUnitTestCase;
Expand Down Expand Up @@ -243,10 +243,10 @@ public function testAddRecognizesCustomNamespaces(): void
$routes = $this->getCollector();
$routes->setDefaultNamespace('\CodeIgniter');

$routes->add('home', 'controller');
$routes->add('home', 'Controller');

$expects = [
'home' => '\\' . controller::class,
'home' => '\\' . Controller::class,
];

$routes = $routes->getRoutes();
Expand Down
Loading