diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c5886ad..5e552a2 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -134,13 +134,13 @@ jobs: matrix: include: - php-version: '8.2' - typo3-version: '^13.4' + typo3-version: '^14.3' - php-version: '8.3' - typo3-version: '^13.4' + typo3-version: '^14.3' - php-version: '8.4' - typo3-version: '^13.4' + typo3-version: '^14.3' - php-version: '8.5' - typo3-version: '^13.4' + typo3-version: '^14.3' steps: - uses: actions/checkout@v4 diff --git a/Classes/Checkout/Payment/PaymentProcessor.php b/Classes/Checkout/Payment/PaymentProcessor.php index 5f9858b..5567397 100644 --- a/Classes/Checkout/Payment/PaymentProcessor.php +++ b/Classes/Checkout/Payment/PaymentProcessor.php @@ -12,6 +12,7 @@ */ use Extcode\Cart\Domain\Model\Order\Item; +use Extcode\Cart\OrderStatus\PaymentStatus; use Extcode\CartPaypal\Api\ApiException; use Extcode\CartPaypal\Api\PayPalClient; use Extcode\CartPaypal\Checkout\CheckoutException; diff --git a/Classes/Checkout/Payment/PaymentStatus.php b/Classes/Checkout/Payment/PaymentStatus.php deleted file mode 100644 index f8ba575..0000000 --- a/Classes/Checkout/Payment/PaymentStatus.php +++ /dev/null @@ -1,26 +0,0 @@ -connectionPool - ->getConnectionForTable(self::PAYMENT_TABLE) - ->update( - self::PAYMENT_TABLE, - [ - 'status' => $toStatus, - 'tstamp' => time(), - ], - [ - 'uid' => (int)$payment->getUid(), - 'status' => $fromStatus, - ], - [ - 'tstamp' => Connection::PARAM_INT, - 'uid' => Connection::PARAM_INT, - ] - ); - - return $affectedRows > 0; - } - - public function getStoredStatus(Payment $payment): string - { - $queryBuilder = $this->connectionPool->getQueryBuilderForTable(self::PAYMENT_TABLE); - $queryBuilder->getRestrictions()->removeAll(); - - return (string)$queryBuilder - ->select('status') - ->from(self::PAYMENT_TABLE) - ->where( - $queryBuilder->expr()->eq('uid', $queryBuilder->createNamedParameter((int)$payment->getUid(), Connection::PARAM_INT)) - ) - ->executeQuery() - ->fetchOne(); - } -} diff --git a/Classes/Checkout/Payment/PaymentStatusUpdater.php b/Classes/Checkout/Payment/PaymentStatusUpdater.php index e2711a3..d08d074 100644 --- a/Classes/Checkout/Payment/PaymentStatusUpdater.php +++ b/Classes/Checkout/Payment/PaymentStatusUpdater.php @@ -12,16 +12,22 @@ */ use Extcode\Cart\Domain\Model\Order\Payment; +use Extcode\Cart\OrderHistory\OrderChangeSource; +use Extcode\Cart\OrderStatus\StatusChangeOutcome; +use Extcode\Cart\OrderStatus\StatusChangeService; use Psr\Log\LoggerInterface; /** - * Changes the status of a payment only if it has not been changed by another - * request in the meantime. + * Changes the status of a payment with the StatusChangeService of cart, which + * changes it only if it has not been changed by another request in the + * meantime. The change is stored in the order history. */ final class PaymentStatusUpdater { + public const INITIATOR = 'cart_paypal'; + public function __construct( - private readonly PaymentStatusStore $paymentStatusStore, + private readonly StatusChangeService $statusChangeService, private readonly LoggerInterface $logger, ) {} @@ -29,30 +35,43 @@ public function __construct( * Returns true if this call changed the status. Only the request that * changed it may dispatch the events of the change. * - * @param bool $byPayPal the change is caused by PayPal, e.g. a webhook, not by the customer; not stored with cart 11 + * @param bool $byPayPal the change is caused by PayPal, e.g. a webhook, not by the customer */ public function change(Payment $payment, string $toStatus, bool $byPayPal = false): bool { - $changed = $this->paymentStatusStore->updateIfStatus($payment, $payment->getStatus(), $toStatus); + $source = $byPayPal ? OrderChangeSource::Api : null; + + $result = $this->statusChangeService->change( + $payment, + $toStatus, + $payment->getStatus(), + self::INITIATOR, + null, + $source + ); - if (!$changed) { + if ($result->outcome === StatusChangeOutcome::Stale && $result->storedStatus !== null) { // changed by another request since the payment was loaded, try again with the stored status - $storedStatus = $this->paymentStatusStore->getStoredStatus($payment); - $payment->setStatus($storedStatus); - $changed = $this->paymentStatusStore->updateIfStatus($payment, $storedStatus, $toStatus); - - if (!$changed && $storedStatus !== $toStatus) { - $this->logger->error('The status of a payment paid with PayPal could not be changed.', [ - 'payment' => $payment->getUid(), - 'toStatus' => $toStatus, - ]); - } + $payment->setStatus($result->storedStatus); + $result = $this->statusChangeService->change( + $payment, + $toStatus, + $result->storedStatus, + self::INITIATOR, + null, + $source + ); } - if ($changed) { - $payment->setStatus($toStatus); + if (!$result->isChanged() && $result->outcome !== StatusChangeOutcome::Unchanged) { + $this->logger->error('The status of a payment paid with PayPal could not be changed.', [ + 'payment' => $payment->getUid(), + 'toStatus' => $toStatus, + 'outcome' => $result->outcome->name, + 'vetoReason' => $result->vetoReason, + ]); } - return $changed; + return $result->isChanged(); } } diff --git a/Classes/EventListener/Order/Payment/ClearCart.php b/Classes/EventListener/Order/Payment/ClearCart.php index ebff856..f6debad 100644 --- a/Classes/EventListener/Order/Payment/ClearCart.php +++ b/Classes/EventListener/Order/Payment/ClearCart.php @@ -11,10 +11,10 @@ * LICENSE file that was distributed with this source code. */ +use Extcode\Cart\Configuration\Loader\PaymentMethodsLoaderInterface; use Extcode\Cart\Domain\Model\Order\BillingAddress; use Extcode\Cart\Domain\Model\Order\ShippingAddress; use Extcode\Cart\Event\Order\PaymentEvent; -use Extcode\Cart\Service\PaymentMethodsServiceInterface; use Extcode\Cart\Service\SessionHandler; use Extcode\Cart\Utility\CartUtility; use Extcode\CartPaypal\Checkout\Payment\PaymentProvider; @@ -24,7 +24,7 @@ final class ClearCart { public function __construct( private readonly CartUtility $cartUtility, - private readonly PaymentMethodsServiceInterface $paymentMethodsService, + private readonly PaymentMethodsLoaderInterface $paymentMethodsLoader, private readonly SessionHandler $sessionHandler ) {} @@ -40,7 +40,7 @@ public function __invoke(PaymentEvent $event): void $paymentId = $cart->getPayment()->getId(); - $paymentMethod = $this->paymentMethodsService->getPaymentMethods($cart)[$paymentId] ?? null; + $paymentMethod = $this->paymentMethodsLoader->getPaymentMethods($cart)[$paymentId] ?? null; if ((int)($paymentMethod?->getConfig()['preventClearCart'] ?? 0) !== 1) { $cartPid = $settings['settings']['cart']['pid']; diff --git a/Documentation/Administrator/Configuration/PaymentMethod/Index.rst b/Documentation/Administrator/Configuration/PaymentMethod/Index.rst index d442881..8b39659 100644 --- a/Documentation/Administrator/Configuration/PaymentMethod/Index.rst +++ b/Documentation/Administrator/Configuration/PaymentMethod/Index.rst @@ -35,6 +35,24 @@ them in the cart, e.g. "PayPal" and "Credit card". } } +If Cart reads the payment methods from the site settings (site set loader of +Cart), the option is added to `extcode.cart-payments` in the same way: + +.. code-block:: yaml + :caption: config/sites//settings.yaml + + extcode: + cart-payments: + countries: + de: + options: + 2: + provider: PAYPAL + title: PayPal + extra: 0.0 + taxClassId: 1 + status: open + | .. container:: table-row diff --git a/Documentation/Changelog/9.0/Index.rst b/Documentation/Changelog/9.0/Index.rst new file mode 100644 index 0000000..1c542cc --- /dev/null +++ b/Documentation/Changelog/9.0/Index.rst @@ -0,0 +1,16 @@ +.. include:: ../../Includes.rst.txt + +=========== +9.0 Changes +=========== + +The version 9.x is a release for TYPO3 v14.3 and extcode/cart 12.x. It +provides the features of version 8.x. + +Features +======== + +* The status of the payment is changed with the `StatusChangeService` of Cart. + The changes are stored in the order history with the initiator + `cart_paypal`, the `BeforeStatusChangeEvent` and `AfterStatusChangeEvent` of + Cart are dispatched. diff --git a/Documentation/Changelog/Index.rst b/Documentation/Changelog/Index.rst index 43155ec..4474bb1 100644 --- a/Documentation/Changelog/Index.rst +++ b/Documentation/Changelog/Index.rst @@ -7,6 +7,7 @@ ChangeLog :maxdepth: 3 :titlesonly: + 9.0/Index 8.0/Index 6.0/Index 5.0/Index diff --git a/Documentation/Developer/Events/Index.rst b/Documentation/Developer/Events/Index.rst index f4b34ed..1a390b9 100644 --- a/Documentation/Developer/Events/Index.rst +++ b/Documentation/Developer/Events/Index.rst @@ -17,3 +17,7 @@ Cart PayPal dispatches its own events after the payment. `\Extcode\CartPaypal\Event\Order\CancelEvent` Dispatched once when the customer cancels the payment and returns to the cart. + +The status of the payment is changed with the `StatusChangeService` of Cart, +its `BeforeStatusChangeEvent` and `AfterStatusChangeEvent` are dispatched as +well, with the initiator `cart_paypal`. diff --git a/Documentation/Introduction/Index.rst b/Documentation/Introduction/Index.rst index 2d9fb24..11e8255 100644 --- a/Documentation/Introduction/Index.rst +++ b/Documentation/Introduction/Index.rst @@ -37,5 +37,6 @@ The emails of Cart are sent after the payment is completed. :maxdepth: 2 :titlesonly: + SupportedVersions/Index Support/Index Sponsoring/Index diff --git a/Documentation/Introduction/SupportedVersions/Index.rst b/Documentation/Introduction/SupportedVersions/Index.rst new file mode 100644 index 0000000..6768020 --- /dev/null +++ b/Documentation/Introduction/SupportedVersions/Index.rst @@ -0,0 +1,33 @@ +.. include:: ../../Includes.rst.txt + +.. _supported-versions: + +================== +Supported versions +================== + +The table lists the compatibility of all versions with TYPO3 and PHP and which +versions are still supported. + +=========== ========== ========= ==================================== +Cart PayPal TYPO3 PHP Support/Development +=========== ========== ========= ==================================== +9.x.x 14.3 8.2 - 8.5 Features, Bugfixes, Security Updates +8.x.x 13.4 8.2 - 8.5 Bugfixes, Security Updates +6.x.x 10.4, 11.5 7.2+ +5.x.x 10.4 7.2 - 7.4 +4.x.x 9.5 7.2 - 7.4 +3.x.x 8.7 7.0 - 7.4 +2.x.x 6.2 - 8.7 5.6 - 7.0 +1.x.x +=========== ========== ========= ==================================== + +If you need extended support for features and bug fixes outside of the +currently supported versions, we are happy to offer paid services. + +Security +======== + +Security updates are only provided for supported versions. Please do not report +security issues in public GitHub issues or pull requests. Report them to the +TYPO3 Security Team via security@typo3.org instead. diff --git a/Documentation/guides.xml b/Documentation/guides.xml index fe3a16b..f45808f 100644 --- a/Documentation/guides.xml +++ b/Documentation/guides.xml @@ -11,8 +11,8 @@ interlink-shortcode="extcode/cart-paypal" /> diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000..0f9d965 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,15 @@ +# Security Policy + +## Supported Versions + +Security updates are only provided for supported versions. The support status +of all versions is listed in the +[official extension documentation in chapter supported versions](https://docs.typo3.org/p/extcode/cart-paypal/main/en-us/Introduction/SupportedVersions/Index.html). + +## Reporting a Vulnerability + +Please do not report security issues in public GitHub issues or pull requests. + +Report them to the TYPO3 Security Team via security@typo3.org. The team +coordinates the fix and the publication of a security advisory with the +maintainers. diff --git a/Tests/Functional/AbstractPayPalTestCase.php b/Tests/Functional/AbstractPayPalTestCase.php index 601dc9e..576f41f 100644 --- a/Tests/Functional/AbstractPayPalTestCase.php +++ b/Tests/Functional/AbstractPayPalTestCase.php @@ -67,6 +67,12 @@ abstract class AbstractPayPalTestCase extends FunctionalTestCase 'MAIL' => [ 'transport' => 'null', ], + 'SYS' => [ + 'features' => [ + // the MailHandler of cart is deprecated since cart 12.4 + 'cart.useNewOrderMailSender' => true, + ], + ], ]; protected function setUp(): void diff --git a/Tests/Functional/Controller/ApiControllerCaptureOrderTest.php b/Tests/Functional/Controller/ApiControllerCaptureOrderTest.php index 5927f02..1cfbb74 100644 --- a/Tests/Functional/Controller/ApiControllerCaptureOrderTest.php +++ b/Tests/Functional/Controller/ApiControllerCaptureOrderTest.php @@ -11,6 +11,7 @@ * LICENSE file that was distributed with this source code. */ +use Extcode\Cart\OrderHistory\OrderChangeRepository; use Extcode\CartPaypal\Checkout\Payment\PaymentProcessor; use Extcode\CartPaypal\Controller\ApiController; use Extcode\CartPaypal\Event\Order\CancelEvent; @@ -21,6 +22,7 @@ use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\Test; use Psr\Http\Message\ResponseInterface; +use TYPO3\CMS\Core\Database\ConnectionPool; /** * The JavaScript captures the order after the customer approved it. @@ -76,6 +78,31 @@ public function completedCaptureDispatchesTheFinishEventOnce(): void self::assertSame('1', (string)$event->getSettings()['settings']['cart']['pid']); } + #[Test] + public function completedCaptureIsStoredInTheOrderHistory(): void + { + $this->prepareCapture(201, self::capturedOrder()); + + $this->captureOrder(); + + $changes = $this->get(ConnectionPool::class) + ->getConnectionForTable(OrderChangeRepository::TABLE_NAME) + ->select(['old_value', 'new_value', 'source', 'initiator'], OrderChangeRepository::TABLE_NAME) + ->fetchAllAssociative(); + + self::assertSame( + [ + [ + 'old_value' => 'open', + 'new_value' => 'paid', + 'source' => 'frontend', + 'initiator' => 'cart_paypal', + ], + ], + $changes + ); + } + #[Test] public function captureIsSentWithTheIdOfTheOrderAsRequestId(): void { diff --git a/Tests/Functional/Fixtures/Extensions/paypal_test/ext_localconf.php b/Tests/Functional/Fixtures/Extensions/paypal_test/ext_localconf.php index dccdb4e..df9c602 100644 --- a/Tests/Functional/Fixtures/Extensions/paypal_test/ext_localconf.php +++ b/Tests/Functional/Fixtures/Extensions/paypal_test/ext_localconf.php @@ -16,8 +16,7 @@ ], [ PaymentEventController::class => 'dispatch', - ], - ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT + ] ); // No request to PayPal leaves the tests. diff --git a/Tests/Unit/EventListener/Order/Payment/ClearCartTest.php b/Tests/Unit/EventListener/Order/Payment/ClearCartTest.php index 6c9b3e4..e03e516 100644 --- a/Tests/Unit/EventListener/Order/Payment/ClearCartTest.php +++ b/Tests/Unit/EventListener/Order/Payment/ClearCartTest.php @@ -11,6 +11,7 @@ * LICENSE file that was distributed with this source code. */ +use Extcode\Cart\Configuration\Loader\PaymentMethodsLoaderInterface; use Extcode\Cart\Domain\Model\Cart\Cart; use Extcode\Cart\Domain\Model\Cart\Service; use Extcode\Cart\Domain\Model\Cart\ServiceInterface; @@ -19,7 +20,6 @@ use Extcode\Cart\Domain\Model\Order\Payment; use Extcode\Cart\Domain\Model\Order\ShippingAddress; use Extcode\Cart\Event\Order\PaymentEvent; -use Extcode\Cart\Service\PaymentMethodsServiceInterface; use Extcode\Cart\Service\SessionHandler; use Extcode\Cart\Utility\CartUtility; use Extcode\CartPaypal\EventListener\Order\Payment\ClearCart; @@ -44,7 +44,7 @@ final class ClearCartTest extends UnitTestCase private CartUtility&MockObject $cartUtility; - private PaymentMethodsServiceInterface&MockObject $paymentMethodsService; + private PaymentMethodsLoaderInterface&MockObject $paymentMethodsLoader; private SessionHandler&MockObject $sessionHandler; @@ -57,7 +57,7 @@ protected function setUp(): void parent::setUp(); $this->cartUtility = $this->createMock(CartUtility::class); - $this->paymentMethodsService = $this->createMock(PaymentMethodsServiceInterface::class); + $this->paymentMethodsLoader = $this->createMock(PaymentMethodsLoaderInterface::class); $this->sessionHandler = $this->createMock(SessionHandler::class); $payment = self::createStub(ServiceInterface::class); @@ -68,7 +68,7 @@ protected function setUp(): void $this->subject = new ClearCart( $this->cartUtility, - $this->paymentMethodsService, + $this->paymentMethodsLoader, $this->sessionHandler, ); } @@ -84,7 +84,7 @@ public static function otherProviderDataProvider(): \Generator #[DataProvider('otherProviderDataProvider')] public function doesNothingForPaymentsOfOtherProviders(string $provider): void { - $this->paymentMethodsService->expects(self::never())->method('getPaymentMethods'); + $this->paymentMethodsLoader->expects(self::never())->method('getPaymentMethods'); $this->cartUtility->expects(self::never())->method('getNewCart'); $this->sessionHandler->expects(self::never())->method('writeCart'); $this->sessionHandler->expects(self::never())->method('writeAddress'); @@ -95,7 +95,7 @@ public function doesNothingForPaymentsOfOtherProviders(string $provider): void #[Test] public function doesNotClearTheCartIfPreventClearCartIsSet(): void { - $this->paymentMethodsService + $this->paymentMethodsLoader ->expects(self::once()) ->method('getPaymentMethods') ->willReturn($this->createPaymentMethods([ @@ -126,7 +126,7 @@ public static function paymentMethodsWithoutPreventClearCartDataProvider(): \Gen #[DataProvider('paymentMethodsWithoutPreventClearCartDataProvider')] public function clearsCartAndAddressesForPayPalPayments(array $paymentMethodConfigurations): void { - $this->paymentMethodsService + $this->paymentMethodsLoader ->expects(self::once()) ->method('getPaymentMethods') ->with($this->cart) @@ -166,7 +166,7 @@ public function clearsCartAndAddressesForPayPalPayments(array $paymentMethodConf #[Test] public function clearsCartForCreditCardPaymentsWithPayPal(): void { - $this->paymentMethodsService->expects(self::once())->method('getPaymentMethods')->willReturn([]); + $this->paymentMethodsLoader->expects(self::once())->method('getPaymentMethods')->willReturn([]); $this->cartUtility->expects(self::once())->method('getNewCart')->willReturn(self::createStub(Cart::class)); $this->sessionHandler->expects(self::once())->method('writeCart'); @@ -177,7 +177,7 @@ public function clearsCartForCreditCardPaymentsWithPayPal(): void #[Test] public function doesNotStopThePropagationOfTheEvent(): void { - $this->paymentMethodsService->expects(self::once())->method('getPaymentMethods')->willReturn([]); + $this->paymentMethodsLoader->expects(self::once())->method('getPaymentMethods')->willReturn([]); $this->cartUtility->expects(self::once())->method('getNewCart')->willReturn(self::createStub(Cart::class)); $this->sessionHandler->expects(self::once())->method('writeCart'); @@ -189,7 +189,7 @@ public function doesNotStopThePropagationOfTheEvent(): void } /** - * Creates the payment methods like PaymentMethodsServiceInterface returns + * Creates the payment methods like PaymentMethodsLoaderInterface returns * them: services indexed by their id. * * @param array $configurations diff --git a/composer.json b/composer.json index c3507bd..bf714b6 100644 --- a/composer.json +++ b/composer.json @@ -51,11 +51,11 @@ }, "require": { "php": "~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0", - "extcode/cart": "^11.10", - "typo3/cms-core": "^13.4", - "typo3/cms-extbase": "^13.4", - "typo3/cms-fluid": "^13.4", - "typo3/cms-frontend": "^13.4" + "extcode/cart": "^12.6", + "typo3/cms-core": "^14.3", + "typo3/cms-extbase": "^14.3", + "typo3/cms-fluid": "^14.3", + "typo3/cms-frontend": "^14.3" }, "require-dev": { "codappix/typo3-php-datasets": "^2.1", diff --git a/ext_emconf.php b/ext_emconf.php deleted file mode 100644 index 427be6d..0000000 --- a/ext_emconf.php +++ /dev/null @@ -1,26 +0,0 @@ - 'Cart - PayPal', - 'description' => 'Shopping Cart(s) for TYPO3 - PayPal Payment Provider', - 'category' => 'services', - 'version' => '8.0.0', - 'state' => 'stable', - 'author' => 'Daniel Gohlke', - 'author_email' => 'ext@extco.de', - 'author_company' => 'extco.de UG (haftungsbeschränkt)', - 'constraints' => [ - 'depends' => [ - 'php' => '8.2.0-8.5.99', - 'typo3' => '13.4.0-13.4.99', - 'extbase' => '13.4.0-13.4.99', - 'fluid' => '13.4.0-13.4.99', - 'frontend' => '13.4.0-13.4.99', - 'cart' => '11.9.0-11.99.99', - ], - 'conflicts' => [], - 'suggests' => [], - ], -]; diff --git a/ext_localconf.php b/ext_localconf.php index add973b..a34208c 100644 --- a/ext_localconf.php +++ b/ext_localconf.php @@ -20,8 +20,7 @@ ], [ PaymentController::class => 'show', - ], - ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT + ] ); // The endpoints on the page type, called by the JavaScript, by PayPal and by @@ -37,8 +36,7 @@ [ WebhookController::class => 'webhook', ApiController::class => 'createOrder, captureOrder, redirect, return, cancel', - ], - ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT + ] ); // exclude parameters from cHash, PayPal appends them to the return URL diff --git a/rector.php b/rector.php index 1bde0a6..aaaff08 100644 --- a/rector.php +++ b/rector.php @@ -8,7 +8,6 @@ use Rector\TypeDeclaration\Rector\ClassMethod\AddVoidReturnTypeWhereNoReturnRector; use Rector\ValueObject\PhpVersion; use Ssch\TYPO3Rector\CodeQuality\General\ConvertImplicitVariablesToExplicitGlobalsRector; -use Ssch\TYPO3Rector\CodeQuality\General\ExtEmConfRector; use Ssch\TYPO3Rector\CodeQuality\General\InjectMethodToConstructorInjectionRector; use Ssch\TYPO3Rector\Configuration\Typo3Option; use Ssch\TYPO3Rector\Set\Typo3LevelSetList; @@ -27,7 +26,7 @@ ->withSets([ Typo3SetList::CODE_QUALITY, Typo3SetList::GENERAL, - Typo3LevelSetList::UP_TO_TYPO3_13, + Typo3LevelSetList::UP_TO_TYPO3_14, ]) // To have a better analysis from PHPStan, we teach it here some more things ->withPHPStanConfigs([ @@ -37,11 +36,6 @@ AddVoidReturnTypeWhereNoReturnRector::class, ConvertImplicitVariablesToExplicitGlobalsRector::class, ]) - ->withConfiguredRule(ExtEmConfRector::class, [ - ExtEmConfRector::PHP_VERSION_CONSTRAINT => '8.2.0-8.5.99', - ExtEmConfRector::TYPO3_VERSION_CONSTRAINT => '13.4.0-13.4.99', - ExtEmConfRector::ADDITIONAL_VALUES_TO_BE_REMOVED => [], - ]) // If you use withImportNames(), you should consider excluding some TYPO3 files. ->withSkip([ // @see https://github.com/sabbelasichon/typo3-rector/issues/2536