Skip to content

chore(deps-dev): update rector/rector requirement from 2.1.0 to 2.1.1 #9632

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 11, 2025
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
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"phpunit/phpcov": "^9.0.2 || ^10.0",
"phpunit/phpunit": "^10.5.16 || ^11.2",
"predis/predis": "^3.0",
"rector/rector": "2.1.0",
"rector/rector": "2.1.1",
"shipmonk/phpstan-baseline-per-identifier": "^2.0"
},
"replace": {
Expand Down
36 changes: 18 additions & 18 deletions tests/system/CodeIgniterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function testRunEmptyDefaultRoute(): void
$this->codeigniter->run();
$output = ob_get_clean();

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

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

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

public function testRunClosureRoute(): void
Expand All @@ -121,7 +121,7 @@ public function testRunClosureRoute(): void
$this->codeigniter->run();
$output = ob_get_clean();

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

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

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

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

$this->assertStringContainsString('Oops', $response->getBody());
$this->assertStringContainsString('Oops', (string) $response->getBody());
$this->assertSame(567, $response->getStatusCode());
}

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

$this->assertStringContainsString('Oops', $response->getBody());
$this->assertStringContainsString('Oops', (string) $response->getBody());
}

public function testRun404OverrideByClosure(): void
Expand All @@ -203,7 +203,7 @@ public function testRun404OverrideByClosure(): void
$this->codeigniter->run($routes);
$output = ob_get_clean();

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

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

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

public function testControllersCanReturnResponseObject(): void
Expand All @@ -254,7 +254,7 @@ public function testControllersCanReturnResponseObject(): void
$this->codeigniter->run();
$output = ob_get_clean();

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

/**
Expand Down Expand Up @@ -308,7 +308,7 @@ public function testRunExecuteFilterByClassName(): void
$this->codeigniter->run();
$output = ob_get_clean();

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

$this->resetServices();
}
Expand Down Expand Up @@ -346,7 +346,7 @@ public function testRegisterSameFilterTwiceWithDifferentArgument(): void
$this->codeigniter->run();
$output = ob_get_clean();

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

$this->resetServices();
}
Expand Down Expand Up @@ -374,7 +374,7 @@ public function testDisableControllerFilters(): void
$this->codeigniter->run();
$output = ob_get_clean();

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

$this->resetServices();
}
Expand Down Expand Up @@ -402,7 +402,7 @@ public function testRoutesIsEmpty(): void
$this->codeigniter->run();
$output = ob_get_clean();

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

public function testTransfersCorrectHTTPVersion(): void
Expand Down Expand Up @@ -447,7 +447,7 @@ public function testIgnoringErrorSuppressedByAt(): void
$this->codeigniter->run();
$output = ob_get_clean();

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

public function testRunForceSecure(): void
Expand Down Expand Up @@ -684,7 +684,7 @@ public function testRunDefaultRoute(): void
$this->codeigniter->run();
$output = ob_get_clean();

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

public function testRunCLIRoute(): void
Expand All @@ -704,7 +704,7 @@ public function testRunCLIRoute(): void
$this->codeigniter->run();
$output = ob_get_clean();

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

public function testSpoofRequestMethodCanUsePUT(): void
Expand Down Expand Up @@ -795,7 +795,7 @@ public function testPageCacheSendSecureHeaders(): void
$this->codeigniter->run();
$output = ob_get_clean();

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

$this->assertStringContainsString('This is a test page', $output);
$this->assertStringContainsString('This is a test page', (string) $output);
$response = service('response');
$headers = $response->headers();
$this->assertArrayHasKey('X-Frame-Options', $headers);
Expand Down
2 changes: 1 addition & 1 deletion tests/system/Commands/Database/ShowTableInfoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public function testDbTableMetadata(): void
$expected = <<<'EOL'
| Field Name | Type | Max Length | Nullable | Default | Primary Key |
EOL;
$this->assertStringContainsString($expected, $result);
$this->assertStringContainsString($expected, (string) $result);
}

public function testDbTableDesc(): void
Expand Down
2 changes: 1 addition & 1 deletion tests/system/Commands/EnvironmentCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,6 @@ public function testSettingNewEnvIsSuccess(): void
command('env development');

$this->assertStringContainsString('Environment is successfully changed to', $this->getStreamFilterBuffer());
$this->assertStringContainsString('CI_ENVIRONMENT = development', file_get_contents($this->envPath));
$this->assertStringContainsString('CI_ENVIRONMENT = development', (string) file_get_contents($this->envPath));
}
}
4 changes: 2 additions & 2 deletions tests/system/Commands/FilterCheckTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ public function testFilterCheckDefinedRoute(): void

$this->assertStringContainsString(
'| GET | / | forcehttps pagecache | pagecache performance toolbar |',
preg_replace('/\033\[.+?m/u', '', $this->getBuffer()),
(string) preg_replace('/\033\[.+?m/u', '', $this->getBuffer()),
);
$this->assertStringContainsString(
'Before Filter Classes:
CodeIgniter\Filters\ForceHTTPS → CodeIgniter\Filters\PageCache
After Filter Classes:
CodeIgniter\Filters\PageCache → CodeIgniter\Filters\PerformanceMetrics → CodeIgniter\Filters\DebugToolbar',
preg_replace('/\033\[.+?m/u', '', $this->getBuffer()),
(string) preg_replace('/\033\[.+?m/u', '', $this->getBuffer()),
);
}

Expand Down
12 changes: 6 additions & 6 deletions tests/system/Commands/GenerateKeyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,18 +92,18 @@ public function testGenerateKeyCreatesNewKey(): void
{
command('key:generate');
$this->assertStringContainsString('successfully set.', $this->getBuffer());
$this->assertStringContainsString(env('encryption.key'), file_get_contents($this->envPath));
$this->assertStringContainsString('hex2bin:', file_get_contents($this->envPath));
$this->assertStringContainsString(env('encryption.key'), (string) file_get_contents($this->envPath));
$this->assertStringContainsString('hex2bin:', (string) file_get_contents($this->envPath));

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

command('key:generate --prefix hex2bin --force');
$this->assertStringContainsString('successfully set.', $this->getBuffer());
$this->assertStringContainsString(env('encryption.key'), file_get_contents($this->envPath));
$this->assertStringContainsString('hex2bin:', file_get_contents($this->envPath));
$this->assertStringContainsString(env('encryption.key'), (string) file_get_contents($this->envPath));
$this->assertStringContainsString('hex2bin:', (string) file_get_contents($this->envPath));
}

public function testDefaultShippedEnvIsMissing(): void
Expand Down
2 changes: 1 addition & 1 deletion tests/system/Commands/RoutesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function testRoutesCommand(): void
EOL;
$this->assertStringContainsString(
$expected,
preg_replace('/\033\[.+?m/u', '', $this->getBuffer()),
(string) preg_replace('/\033\[.+?m/u', '', $this->getBuffer()),
);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/system/CommonFunctionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ public function testTrace(): void
trace();
$content = ob_get_clean();

$this->assertStringContainsString('Debug Backtrace', $content);
$this->assertStringContainsString('Debug Backtrace', (string) $content);
}

public function testViewNotSaveData(): void
Expand Down
2 changes: 1 addition & 1 deletion tests/system/Debug/ExceptionHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function testHandleWebPageNotFoundExceptionAcceptHTML(): void
$this->handler->handle($exception, $request, $response, 404, EXIT_ERROR);
$output = ob_get_clean();

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

public function testHandleCLIPageNotFoundException(): void
Expand Down
4 changes: 2 additions & 2 deletions tests/system/Filters/HoneypotTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function testAfter(): void

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

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

$this->response->setBody('<div></div>');
$this->response = $filters->run($uri, 'after');
$this->assertStringNotContainsString($this->honey->name, $this->response->getBody());
$this->assertStringNotContainsString($this->honey->name, (string) $this->response->getBody());
}
}
Loading
Loading