Skip to content

Commit 4bf608d

Browse files
chore(deps-dev): update rector/rector requirement from 2.1.0 to 2.1.1 (#9632)
* chore(deps-dev): update rector/rector requirement from 2.1.0 to 2.1.1 Updates the requirements on [rector/rector](https://github.com/rectorphp/rector) to permit the latest version. - [Release notes](https://github.com/rectorphp/rector/releases) - [Commits](rectorphp/rector@2.1.0...2.1.1) --- updated-dependencies: - dependency-name: rector/rector dependency-version: 2.1.1 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <[email protected]> * re-run rector --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Abdul Malik Ikhsan <[email protected]>
1 parent a54e627 commit 4bf608d

20 files changed

+121
-121
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"phpunit/phpcov": "^9.0.2 || ^10.0",
2929
"phpunit/phpunit": "^10.5.16 || ^11.2",
3030
"predis/predis": "^3.0",
31-
"rector/rector": "2.1.0",
31+
"rector/rector": "2.1.1",
3232
"shipmonk/phpstan-baseline-per-identifier": "^2.0"
3333
},
3434
"replace": {

tests/system/CodeIgniterTest.php

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function testRunEmptyDefaultRoute(): void
7777
$this->codeigniter->run();
7878
$output = ob_get_clean();
7979

80-
$this->assertStringContainsString('Welcome to CodeIgniter', $output);
80+
$this->assertStringContainsString('Welcome to CodeIgniter', (string) $output);
8181
}
8282

8383
public function testOutputBufferingControl(): void
@@ -98,7 +98,7 @@ public function testRunEmptyDefaultRouteReturnResponse(): void
9898
$response = $this->codeigniter->run(null, true);
9999
$this->assertInstanceOf(ResponseInterface::class, $response);
100100

101-
$this->assertStringContainsString('Welcome to CodeIgniter', $response->getBody());
101+
$this->assertStringContainsString('Welcome to CodeIgniter', (string) $response->getBody());
102102
}
103103

104104
public function testRunClosureRoute(): void
@@ -121,7 +121,7 @@ public function testRunClosureRoute(): void
121121
$this->codeigniter->run();
122122
$output = ob_get_clean();
123123

124-
$this->assertStringContainsString('You want to see "about" page.', $output);
124+
$this->assertStringContainsString('You want to see "about" page.', (string) $output);
125125
}
126126

127127
/**
@@ -144,7 +144,7 @@ public function testRun404Override(): void
144144
$this->codeigniter->run($routes);
145145
$output = ob_get_clean();
146146

147-
$this->assertStringContainsString("Can't find a route for 'GET: pages/about'.", $output);
147+
$this->assertStringContainsString("Can't find a route for 'GET: pages/about'.", (string) $output);
148148
$this->assertSame(404, response()->getStatusCode());
149149
}
150150

@@ -163,7 +163,7 @@ public function testRun404OverrideControllerReturnsResponse(): void
163163
$response = $this->codeigniter->run($routes, true);
164164
$this->assertInstanceOf(ResponseInterface::class, $response);
165165

166-
$this->assertStringContainsString('Oops', $response->getBody());
166+
$this->assertStringContainsString('Oops', (string) $response->getBody());
167167
$this->assertSame(567, $response->getStatusCode());
168168
}
169169

@@ -182,7 +182,7 @@ public function testRun404OverrideReturnResponse(): void
182182
$response = $this->codeigniter->run($routes, true);
183183
$this->assertInstanceOf(ResponseInterface::class, $response);
184184

185-
$this->assertStringContainsString('Oops', $response->getBody());
185+
$this->assertStringContainsString('Oops', (string) $response->getBody());
186186
}
187187

188188
public function testRun404OverrideByClosure(): void
@@ -203,7 +203,7 @@ public function testRun404OverrideByClosure(): void
203203
$this->codeigniter->run($routes);
204204
$output = ob_get_clean();
205205

206-
$this->assertStringContainsString('404 Override by Closure.', $output);
206+
$this->assertStringContainsString('404 Override by Closure.', (string) $output);
207207
$this->assertSame(404, response()->getStatusCode());
208208
}
209209

@@ -228,7 +228,7 @@ public function testControllersCanReturnString(): void
228228
$this->codeigniter->run();
229229
$output = ob_get_clean();
230230

231-
$this->assertStringContainsString('You want to see "about" page.', $output);
231+
$this->assertStringContainsString('You want to see "about" page.', (string) $output);
232232
}
233233

234234
public function testControllersCanReturnResponseObject(): void
@@ -254,7 +254,7 @@ public function testControllersCanReturnResponseObject(): void
254254
$this->codeigniter->run();
255255
$output = ob_get_clean();
256256

257-
$this->assertStringContainsString("You want to see 'about' page.", $output);
257+
$this->assertStringContainsString("You want to see 'about' page.", (string) $output);
258258
}
259259

260260
/**
@@ -308,7 +308,7 @@ public function testRunExecuteFilterByClassName(): void
308308
$this->codeigniter->run();
309309
$output = ob_get_clean();
310310

311-
$this->assertStringContainsString('http://hellowworld.com', $output);
311+
$this->assertStringContainsString('http://hellowworld.com', (string) $output);
312312

313313
$this->resetServices();
314314
}
@@ -346,7 +346,7 @@ public function testRegisterSameFilterTwiceWithDifferentArgument(): void
346346
$this->codeigniter->run();
347347
$output = ob_get_clean();
348348

349-
$this->assertStringContainsString('http://hellowworld.comhttp://hellowworld.com', $output);
349+
$this->assertStringContainsString('http://hellowworld.comhttp://hellowworld.com', (string) $output);
350350

351351
$this->resetServices();
352352
}
@@ -374,7 +374,7 @@ public function testDisableControllerFilters(): void
374374
$this->codeigniter->run();
375375
$output = ob_get_clean();
376376

377-
$this->assertStringContainsString('', $output);
377+
$this->assertStringContainsString('', (string) $output);
378378

379379
$this->resetServices();
380380
}
@@ -402,7 +402,7 @@ public function testRoutesIsEmpty(): void
402402
$this->codeigniter->run();
403403
$output = ob_get_clean();
404404

405-
$this->assertStringContainsString('Welcome to CodeIgniter', $output);
405+
$this->assertStringContainsString('Welcome to CodeIgniter', (string) $output);
406406
}
407407

408408
public function testTransfersCorrectHTTPVersion(): void
@@ -447,7 +447,7 @@ public function testIgnoringErrorSuppressedByAt(): void
447447
$this->codeigniter->run();
448448
$output = ob_get_clean();
449449

450-
$this->assertStringContainsString('Welcome to CodeIgniter', $output);
450+
$this->assertStringContainsString('Welcome to CodeIgniter', (string) $output);
451451
}
452452

453453
public function testRunForceSecure(): void
@@ -684,7 +684,7 @@ public function testRunDefaultRoute(): void
684684
$this->codeigniter->run();
685685
$output = ob_get_clean();
686686

687-
$this->assertStringContainsString('Welcome to CodeIgniter', $output);
687+
$this->assertStringContainsString('Welcome to CodeIgniter', (string) $output);
688688
}
689689

690690
public function testRunCLIRoute(): void
@@ -704,7 +704,7 @@ public function testRunCLIRoute(): void
704704
$this->codeigniter->run();
705705
$output = ob_get_clean();
706706

707-
$this->assertStringContainsString('Method Not Allowed', $output);
707+
$this->assertStringContainsString('Method Not Allowed', (string) $output);
708708
}
709709

710710
public function testSpoofRequestMethodCanUsePUT(): void
@@ -795,7 +795,7 @@ public function testPageCacheSendSecureHeaders(): void
795795
$this->codeigniter->run();
796796
$output = ob_get_clean();
797797

798-
$this->assertStringContainsString('This is a test page', $output);
798+
$this->assertStringContainsString('This is a test page', (string) $output);
799799
$response = service('response');
800800
$headers = $response->headers();
801801
$this->assertArrayHasKey('X-Frame-Options', $headers);
@@ -805,7 +805,7 @@ public function testPageCacheSendSecureHeaders(): void
805805
$this->codeigniter->run();
806806
$output = ob_get_clean();
807807

808-
$this->assertStringContainsString('This is a test page', $output);
808+
$this->assertStringContainsString('This is a test page', (string) $output);
809809
$response = service('response');
810810
$headers = $response->headers();
811811
$this->assertArrayHasKey('X-Frame-Options', $headers);

tests/system/Commands/Database/ShowTableInfoTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public function testDbTableMetadata(): void
116116
$expected = <<<'EOL'
117117
| Field Name | Type | Max Length | Nullable | Default | Primary Key |
118118
EOL;
119-
$this->assertStringContainsString($expected, $result);
119+
$this->assertStringContainsString($expected, (string) $result);
120120
}
121121

122122
public function testDbTableDesc(): void

tests/system/Commands/EnvironmentCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,6 @@ public function testSettingNewEnvIsSuccess(): void
9494
command('env development');
9595

9696
$this->assertStringContainsString('Environment is successfully changed to', $this->getStreamFilterBuffer());
97-
$this->assertStringContainsString('CI_ENVIRONMENT = development', file_get_contents($this->envPath));
97+
$this->assertStringContainsString('CI_ENVIRONMENT = development', (string) file_get_contents($this->envPath));
9898
}
9999
}

tests/system/Commands/FilterCheckTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ public function testFilterCheckDefinedRoute(): void
4848

4949
$this->assertStringContainsString(
5050
'| GET | / | forcehttps pagecache | pagecache performance toolbar |',
51-
preg_replace('/\033\[.+?m/u', '', $this->getBuffer()),
51+
(string) preg_replace('/\033\[.+?m/u', '', $this->getBuffer()),
5252
);
5353
$this->assertStringContainsString(
5454
'Before Filter Classes:
5555
CodeIgniter\Filters\ForceHTTPS → CodeIgniter\Filters\PageCache
5656
After Filter Classes:
5757
CodeIgniter\Filters\PageCache → CodeIgniter\Filters\PerformanceMetrics → CodeIgniter\Filters\DebugToolbar',
58-
preg_replace('/\033\[.+?m/u', '', $this->getBuffer()),
58+
(string) preg_replace('/\033\[.+?m/u', '', $this->getBuffer()),
5959
);
6060
}
6161

tests/system/Commands/GenerateKeyTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,18 +92,18 @@ public function testGenerateKeyCreatesNewKey(): void
9292
{
9393
command('key:generate');
9494
$this->assertStringContainsString('successfully set.', $this->getBuffer());
95-
$this->assertStringContainsString(env('encryption.key'), file_get_contents($this->envPath));
96-
$this->assertStringContainsString('hex2bin:', file_get_contents($this->envPath));
95+
$this->assertStringContainsString(env('encryption.key'), (string) file_get_contents($this->envPath));
96+
$this->assertStringContainsString('hex2bin:', (string) file_get_contents($this->envPath));
9797

9898
command('key:generate --prefix base64 --force');
9999
$this->assertStringContainsString('successfully set.', $this->getBuffer());
100-
$this->assertStringContainsString(env('encryption.key'), file_get_contents($this->envPath));
101-
$this->assertStringContainsString('base64:', file_get_contents($this->envPath));
100+
$this->assertStringContainsString(env('encryption.key'), (string) file_get_contents($this->envPath));
101+
$this->assertStringContainsString('base64:', (string) file_get_contents($this->envPath));
102102

103103
command('key:generate --prefix hex2bin --force');
104104
$this->assertStringContainsString('successfully set.', $this->getBuffer());
105-
$this->assertStringContainsString(env('encryption.key'), file_get_contents($this->envPath));
106-
$this->assertStringContainsString('hex2bin:', file_get_contents($this->envPath));
105+
$this->assertStringContainsString(env('encryption.key'), (string) file_get_contents($this->envPath));
106+
$this->assertStringContainsString('hex2bin:', (string) file_get_contents($this->envPath));
107107
}
108108

109109
public function testDefaultShippedEnvIsMissing(): void

tests/system/Commands/RoutesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function testRoutesCommand(): void
8686
EOL;
8787
$this->assertStringContainsString(
8888
$expected,
89-
preg_replace('/\033\[.+?m/u', '', $this->getBuffer()),
89+
(string) preg_replace('/\033\[.+?m/u', '', $this->getBuffer()),
9090
);
9191
}
9292

tests/system/CommonFunctionsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ public function testTrace(): void
612612
trace();
613613
$content = ob_get_clean();
614614

615-
$this->assertStringContainsString('Debug Backtrace', $content);
615+
$this->assertStringContainsString('Debug Backtrace', (string) $content);
616616
}
617617

618618
public function testViewNotSaveData(): void

tests/system/Debug/ExceptionHandlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public function testHandleWebPageNotFoundExceptionAcceptHTML(): void
135135
$this->handler->handle($exception, $request, $response, 404, EXIT_ERROR);
136136
$output = ob_get_clean();
137137

138-
$this->assertStringContainsString('<title>404 - Page Not Found</title>', $output);
138+
$this->assertStringContainsString('<title>404 - Page Not Found</title>', (string) $output);
139139
}
140140

141141
public function testHandleCLIPageNotFoundException(): void

tests/system/Filters/HoneypotTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function testAfter(): void
109109

110110
$this->response->setBody('<form></form>');
111111
$this->response = $filters->run($uri, 'after');
112-
$this->assertStringContainsString($this->honey->name, $this->response->getBody());
112+
$this->assertStringContainsString($this->honey->name, (string) $this->response->getBody());
113113
}
114114

115115
#[PreserveGlobalState(false)]
@@ -129,6 +129,6 @@ public function testAfterNotApplicable(): void
129129

130130
$this->response->setBody('<div></div>');
131131
$this->response = $filters->run($uri, 'after');
132-
$this->assertStringNotContainsString($this->honey->name, $this->response->getBody());
132+
$this->assertStringNotContainsString($this->honey->name, (string) $this->response->getBody());
133133
}
134134
}

0 commit comments

Comments
 (0)