FriendsOfTYPO3 / tea

Example extension for unit testing and best practices.
https://typo3.org/community/teams/best-practices
GNU General Public License v2.0
74 stars 22 forks source link

Use PHP native Attributes wherever possible #1171

Open lukaszuznanski opened 6 months ago

lukaszuznanski commented 6 months ago

Goal

I as a user would like to use native PHP Attributes in Services.php

Acceptance Criteria

Additional Information

Use PHP native Attributes wherever possible along Services.php

oliverklee commented 6 months ago

For PHPUnit, this is the rector.php (from https://forge.typo3.org/issues/103180):

<?php

declare(strict_types=1);

use Rector\Config\RectorConfig;
use Rector\PHPUnit\Set\PHPUnitSetList;

return RectorConfig::configure()
    ->withSets([
        PHPUnitSetList::ANNOTATIONS_TO_ATTRIBUTES,
    ])
    ->withImportNames(importShortClasses: false)
    ->withoutParallel();