Skip to content

Commit ea59be9

Browse files
committed
Run Rector downgrade
1 parent 3e0075e commit ea59be9

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

code_samples/api/commerce/src/Command/PaymentCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct(
3737
UserService $userService,
3838
PaymentServiceInterface $paymentService,
3939
OrderServiceInterface $orderService,
40-
PaymentMethodServiceInterface $paymentMethodService,
40+
PaymentMethodServiceInterface $paymentMethodService
4141
) {
4242
$this->paymentService = $paymentService;
4343
$this->permissionResolver = $permissionResolver;

code_samples/back_office/search/src/EventSubscriber/MySuggestionEventSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class MySuggestionEventSubscriber implements EventSubscriberInterface, LoggerAwa
1818
private ProductServiceInterface $productService;
1919

2020
public function __construct(
21-
ProductServiceInterface $productService,
21+
ProductServiceInterface $productService
2222
) {
2323
$this->productService = $productService;
2424
}

code_samples/data_migration/src/Migrations/Step/ReplaceNameStepExecutor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ protected function doHandle(StepInterface $step)
3838
continue;
3939
}
4040

41-
if (str_contains($field->value, 'Company Name')) {
41+
if (strpos($field->value, 'Company Name') !== false) {
4242
$newValue = str_replace('Company Name', $step->getReplacement(), $field->value);
4343
$struct->setField($field->fieldDefIdentifier, new Value($newValue));
4444
}

0 commit comments

Comments
 (0)