Skip to content

Commit 8d4c670

Browse files
authored
Merge pull request #15 from move-elevator/maintenance
Maintenance
2 parents 748b28b + dbf51b4 commit 8d4c670

7 files changed

Lines changed: 21 additions & 15 deletions

File tree

.gitattributes

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
/.ddev export-ignore
22
/.github export-ignore
3+
/Tests export-ignore
34
/.editorconfig export-ignore
45
/.gitignore export-ignore
56
/captainhook.json export-ignore
67
/composer-dependency-analyser.php export-ignore
8+
/composer-unused.php export-ignore
79
/eslint.config.mjs export-ignore
810
/package.json export-ignore
9-
/php-cs-fixer.php export-ignore
10-
/phpstan.neon export-ignore
11-
/phpstan-baseline.neon export-ignore
12-
/rector.php export-ignore
11+
/version-bumper.yaml export-ignore

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,4 @@
33
/public
44
/var
55
/vendor
6-
/.php-cs-fixer.cache
76
/package-lock.json
8-
/php-cs-fixer.xml
9-
/phpstan.xml

Classes/Page/AssetRenderer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
readonly class AssetRenderer extends \TYPO3\CMS\Core\Page\AssetRenderer
1212
{
13+
#[\Override]
1314
public function renderStyleSheets(bool $priority = false, string $endingSlash = '', ?ConsumableNonce $nonce = null): string
1415
{
1516
$inlineStyles = $this->assetCollector->getInlineStyleSheets();

Classes/ViewHelpers/Asset/CssViewHelper.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,10 @@
2626
final class CssViewHelper extends AbstractTagBasedViewHelper
2727
{
2828
protected $escapeChildren = true;
29-
protected AssetCollector $assetCollector;
3029

31-
public function __construct(\TYPO3\CMS\Core\Page\AssetCollector $assetCollector)
30+
public function __construct(protected AssetCollector $assetCollector)
3231
{
3332
parent::__construct();
34-
$this->assetCollector = $assetCollector;
3533
}
3634

3735
#[\Override]

Tests/CGL/composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
"lint:editorconfig": "ec --git-only",
6464
"lint:language": "@composer validate-translations ./../../Resources/Private/Language",
6565
"lint:php": "@fix:php --dry-run",
66+
"lint:typoscript": "@php typoscript-lint",
6667
"lint:yaml": "find ./ ! -path './../../node_modules/*' ! -path './../../vendor/*' ! -path './vendor/*' ! -path './../../typo3_toolbox/*' \\( -name '*.yaml' -o -name '*.yml' \\) | xargs -r yaml-lint",
6768
"migration": [
6869
"@migration:rector"

Tests/CGL/rector.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
use Rector\TypeDeclaration\Rector\ClassMethod\AddVoidReturnTypeWhereNoReturnRector;
99
use Rector\ValueObject\PhpVersion;
1010
use Ssch\TYPO3Rector\CodeQuality\General\{ConvertImplicitVariablesToExplicitGlobalsRector,
11-
ExtEmConfRector,
1211
GeneralUtilityMakeInstanceToConstructorPropertyRector};
1312
use Ssch\TYPO3Rector\Configuration\Typo3Option;
1413
use Ssch\TYPO3Rector\Set\{Typo3LevelSetList, Typo3SetList};
@@ -20,8 +19,6 @@
2019
$rootPath.'/Classes',
2120
$rootPath.'/Configuration',
2221
])
23-
// uncomment to reach your current PHP version
24-
// ->withPhpSets()
2522
->withPhpVersion(PhpVersion::PHP_84)
2623
->withSets([
2724
Typo3SetList::CODE_QUALITY,
@@ -40,8 +37,6 @@
4037
// If you use withImportNames(), you should consider excluding some
4138
// TYPO3 files.
4239
->withSkip([
43-
// @see https://github.com/sabbelasichon/typo3-rector/issues/2536
44-
$rootPath.'/**/Configuration/ExtensionBuilder/*',
4540
NameImportingPostRector::class => [
4641
'ClassAliasMap.php',
4742
],

Tests/CGL/typoscript-lint.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
paths:
2+
- ../../Configuration/
3+
filePatterns:
4+
- "*.typoscript"
5+
- "*.tsconfig"
6+
sniffs:
7+
- class: Indentation
8+
parameters:
9+
useSpaces: false
10+
indentPerLevel: 1
11+
indentConditions: true
12+
- class: NestingConsistency
13+
disabled: true
14+
- class: RepeatingRValue
15+
disabled: true

0 commit comments

Comments
 (0)