Skip to content

Commit

Permalink
[TASK] Rector I
Browse files Browse the repository at this point in the history
- AddClosureVoidReturnTypeWhereNoReturnRector
- RemoveUnusedForeachKeyRector
  • Loading branch information
georgringer committed Apr 18, 2024
1 parent 6da2edf commit 84cc7a8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Build/phpunit/FunctionalTestsBootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* This file is defined in FunctionalTests.xml and called by phpunit
* before instantiating the test suites.
*/
(static function () {
(static function (): void {
$testbase = new \TYPO3\TestingFramework\Core\Testbase();
$testbase->defineOriginalRootPath();
$testbase->createDirectory(ORIGINAL_ROOT . 'typo3temp/var/tests');
Expand Down
2 changes: 1 addition & 1 deletion Build/phpunit/UnitTestsBootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* according script within TYPO3 core's Build/Scripts directory and
* adapt to extensions needs.
*/
(static function () {
(static function (): void {
$testbase = new \TYPO3\TestingFramework\Core\Testbase();

// These if's are for core testing (package typo3/cms) only. cms-composer-installer does
Expand Down
2 changes: 1 addition & 1 deletion Classes/Utility/ClassParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function parse($file): void
$inFunction = false;
$functionName = '';
$lastLine = 0;
foreach ($tokens as $idx => &$token) {
foreach ($tokens as &$token) {
if (is_array($token)) {
switch ($token[0]) {
case T_DOC_COMMENT:
Expand Down
2 changes: 1 addition & 1 deletion Configuration/Services.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use TYPO3\CMS\Core\DependencyInjection;

return function (ContainerConfigurator $container, ContainerBuilder $containerBuilder) {
return function (ContainerConfigurator $container, ContainerBuilder $containerBuilder): void {
$containerBuilder->registerForAutoconfiguration(RecordListQueryHook::class)->addTag('news.RecordListQueryHook');
$containerBuilder->registerForAutoconfiguration(ItemsProcFunc::class)->addTag('news.ItemsProcFunc');
$containerBuilder->registerForAutoconfiguration(PluginPreviewRenderer::class)->addTag('news.PageLayoutView');
Expand Down

0 comments on commit 84cc7a8

Please sign in to comment.