File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828use Rector \CodingStyle \Rector \FuncCall \CountArrayToEmptyArrayComparisonRector ;
2929use Rector \Config \RectorConfig ;
3030use Rector \DeadCode \Rector \ClassMethod \RemoveUnusedPrivateMethodRector ;
31- use Rector \DeadCode \Rector \ClassMethod \RemoveUnusedPromotedPropertyRector ;
3231use Rector \DeadCode \Rector \If_ \UnwrapFutureCompatibleIfPhpVersionRector ;
3332use Rector \DeadCode \Rector \MethodCall \RemoveEmptyMethodCallRector ;
3433use Rector \EarlyReturn \Rector \Foreach_ \ChangeNestedForeachIfsToEarlyContinueRector ;
8079 JsonThrowOnErrorRector::class,
8180 StringifyStrNeedlesRector::class,
8281
83- // requires php 8
84- RemoveUnusedPromotedPropertyRector::class,
85-
8682 RemoveUnusedPrivateMethodRector::class => [
8783 // private method called via getPrivateMethodInvoker
8884 __DIR__ . '/tests/system/Test/ReflectionHelperTest.php ' ,
Original file line number Diff line number Diff line change 2929use CodeIgniter \Router \Router ;
3030use Config \App ;
3131use Config \Cache ;
32+ use Config \Kint as KintConfig ;
3233use Config \Services ;
3334use Exception ;
3435use Kint ;
@@ -258,7 +259,7 @@ protected function initializeKint()
258259 /**
259260 * Config\Kint
260261 */
261- $ config = config (' Config\Kint ' );
262+ $ config = config (KintConfig::class );
262263
263264 Kint::$ depth_limit = $ config ->maxDepth ;
264265 Kint::$ display_called_from = $ config ->displayCalledFrom ;
Original file line number Diff line number Diff line change 1111
1212namespace CodeIgniter \Test \Mock ;
1313
14+ use Tests \Support \Log \Handlers \TestHandler ;
15+
1416class MockLogger
1517{
1618 /*
@@ -81,7 +83,7 @@ class MockLogger
8183 */
8284 public $ handlers = [
8385 // File Handler
84- ' Tests\Support\Log\Handlers\ TestHandler' => [
86+ TestHandler::class => [
8587 // The log levels that this handler will handle.
8688 'handles ' => [
8789 'critical ' ,
Original file line number Diff line number Diff line change 1515use Config \Autoload ;
1616use Config \Modules ;
1717use Config \Paths ;
18+ use Config \Services as ServicesConfig ;
1819
1920error_reporting (E_ALL );
2021ini_set ('display_errors ' , '1 ' );
7879
7980// Use Config\Services as CodeIgniter\Services
8081if (! class_exists ('CodeIgniter\Services ' , false )) {
81- class_alias (' Config\Services ' , 'CodeIgniter\Services ' );
82+ class_alias (ServicesConfig::class , 'CodeIgniter\Services ' );
8283}
8384
8485// Initialize and register the loader with the SPL autoloader stack.
Original file line number Diff line number Diff line change 8989 * files can use the path constants.
9090 */
9191
92- if (! class_exists (' Config\ Autoload' , false )) {
92+ if (! class_exists (Autoload::class , false )) {
9393 require_once SYSTEMPATH . 'Config/AutoloadConfig.php ' ;
9494 require_once APPPATH . 'Config/Autoload.php ' ;
9595 require_once SYSTEMPATH . 'Modules/Modules.php ' ;
103103
104104// Use Config\Services as CodeIgniter\Services
105105if (! class_exists ('CodeIgniter\Services ' , false )) {
106- class_alias (' Config\ Services' , 'CodeIgniter\Services ' );
106+ class_alias (Services::class , 'CodeIgniter\Services ' );
107107}
108108
109109// Initialize and register the loader with the SPL autoloader stack.
You can’t perform that action at this time.
0 commit comments