-
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUGFIX] Add numbered key if missing for SimplifyCheckboxItemsTCARector
Resolves: #4298
- Loading branch information
1 parent
2236b9f
commit 9ca7f4c
Showing
2 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
tests/Rector/v11/v5/SimplifyCheckboxItemsTCARector/Fixture/bug_4298.php.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?php | ||
|
||
namespace Ssch\TYPO3Rector\Tests\Rector\v11\v5\SimplifyCheckboxItemsTCARector\Fixture; | ||
|
||
return [ | ||
'ctrl' => [], | ||
'columns' => [ | ||
'col_name' => [ | ||
'config' => [ | ||
'type' => 'check', | ||
'renderType' => 'checkboxToggle', | ||
'items' => [ | ||
[ | ||
'LLL:EXT:some_extension/Resources/Private/Language/locallang_db.xlf:some_label', | ||
'', | ||
], | ||
], | ||
], | ||
], | ||
], | ||
]; | ||
?> | ||
----- | ||
<?php | ||
|
||
namespace Ssch\TYPO3Rector\Tests\Rector\v11\v5\SimplifyCheckboxItemsTCARector\Fixture; | ||
|
||
return [ | ||
'ctrl' => [], | ||
'columns' => [ | ||
'col_name' => [ | ||
'config' => [ | ||
'type' => 'check', | ||
'renderType' => 'checkboxToggle', | ||
'items' => [ | ||
[ | ||
0 => 'LLL:EXT:some_extension/Resources/Private/Language/locallang_db.xlf:some_label', | ||
], | ||
], | ||
], | ||
], | ||
], | ||
]; | ||
?> |