File tree Expand file tree Collapse file tree 7 files changed +6
-7
lines changed
Expand file tree Collapse file tree 7 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 88use CodeIgniter \Exceptions \PageNotFoundException ;
99use CodeIgniter \HTTP \IncomingRequest ;
1010use CodeIgniter \HTTP \RedirectResponse ;
11- use CodeIgniter \HTTP \Response ;
1211use CodeIgniter \I18n \Time ;
1312use CodeIgniter \Shield \Authentication \Actions \EmailActivator as ShieldEmailActivator ;
1413use CodeIgniter \Shield \Authentication \Authenticators \Session ;
Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ public function syncMeta(array $post): void
236236 }
237237
238238 foreach (array_keys ($ fields ) as $ field ) {
239- $ field = strtolower ($ field );
239+ $ field = strtolower (( string ) $ field );
240240 $ existing = array_key_exists ($ field , $ this ->meta );
241241 // add to keep list
242242 $ legal [] = $ field ;
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ public function __construct(?array $data = null)
8484 }
8585
8686 foreach ($ data as $ key => $ value ) {
87- $ method = 'set ' . ucfirst ($ key );
87+ $ method = 'set ' . ucfirst (( string ) $ key );
8888 if (method_exists ($ this , $ method )) {
8989 $ this ->{$ method }($ value );
9090 }
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ public function countLogLevels($filePath): string
118118
119119 // Count occurrences of each level
120120 foreach ($ levels as $ level ) {
121- $ counts [$ level ] = substr_count ($ fileContent , $ level );
121+ $ counts [$ level ] = substr_count ($ fileContent , ( string ) $ level );
122122 }
123123
124124 // Remove entries with value 0
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ public function __construct(?array $data = null)
4848 }
4949
5050 foreach ($ data as $ key => $ value ) {
51- $ method = 'set ' . ucfirst ($ key );
51+ $ method = 'set ' . ucfirst (( string ) $ key );
5252 if (method_exists ($ this , $ method )) {
5353 $ this ->{$ method }($ value );
5454 }
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ public function __construct(?array $data = null)
115115 }
116116
117117 foreach ($ data as $ key => $ value ) {
118- $ method = 'set ' . ucfirst ($ key );
118+ $ method = 'set ' . ucfirst (( string ) $ key );
119119 if (method_exists ($ this , $ method )) {
120120 $ this ->{$ method }($ value );
121121 }
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ public function __construct(?array $data = null)
9090 }
9191
9292 foreach ($ data as $ key => $ value ) {
93- $ method = 'set ' . ucfirst ($ key );
93+ $ method = 'set ' . ucfirst (( string ) $ key );
9494 if (method_exists ($ this , $ method )) {
9595 $ this ->{$ method }($ value );
9696 }
You can’t perform that action at this time.
0 commit comments